Skip to content

Commit 10f1c57

Browse files
author
Julian Hangstörfer
committed
Consistent lambda variable names
1 parent 3da5a8f commit 10f1c57

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Assets/HoloToolkit/Utilities/Scripts/AtlasReferenceUpdater/Editor/AtlasReferenceUpdater.cs

+3-3
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ private static AssetDeleteResult OnWillDeleteAsset(string assetPath, RemoveAsset
7070
var deletedSprite = AssetDatabase.LoadAssetAtPath<Sprite>(assetPath);
7171
if (deletedSprite != null)
7272
{
73-
foreach (var reference in References.Where(re => re.Atlas.ContainsSprite(deletedSprite)))
73+
foreach (var reference in References.Where(_ref => _ref.Atlas.ContainsSprite(deletedSprite)))
7474
{
7575
var localRef = reference;
7676
EditorApplication.delayCall += () => UpdateAtlasReferences(localRef);
@@ -83,7 +83,7 @@ private static AssetDeleteResult OnWillDeleteAsset(string assetPath, RemoveAsset
8383

8484
private static string[] OnWillSaveAssets(string[] paths)
8585
{
86-
if (paths.Select(AssetDatabase.LoadAssetAtPath<AtlasPrefabReference>).Any(atlasReference => atlasReference != null))
86+
if (paths.Select(AssetDatabase.LoadAssetAtPath<AtlasPrefabReference>).Any(_ref => _ref != null))
8787
{
8888
EditorApplication.delayCall += FindAtlasPrefabReferences;
8989
EditorApplication.delayCall += UpdateAllReferences;
@@ -113,7 +113,7 @@ public static void UpdateAtlasReferences(AtlasPrefabReference reference)
113113
private static IEnumerable<Sprite> GetDistinctSprites(IEnumerable<GameObject> prefabs)
114114
{
115115
return prefabs.SelectMany(p => p.GetComponentsInChildren<Image>())
116-
.Select(i => i.sprite).Where(i => i != null).Distinct();
116+
.Select(img => img.sprite).Where(img => img != null).Distinct();
117117
}
118118
}
119119
}

0 commit comments

Comments
 (0)