Skip to content

Commit

Permalink
Update AssetDatabase.FindAssets usages return type (#687)
Browse files Browse the repository at this point in the history
  • Loading branch information
a-maurice authored Jun 4, 2024
1 parent 5011177 commit c04bc92
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion source/VersionHandler/src/VersionHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ private static void BootStrap() {
if (implAvailable) return;

var assemblies = new List<Match>();
foreach (string assetGuid in AssetDatabase.FindAssets("l:gvh")) {
foreach (var assetGuid in AssetDatabase.FindAssets("l:gvh")) {
string filename = AssetDatabase.GUIDToAssetPath(assetGuid);
var match = VERSION_HANDLER_FILENAME_RE.Match(filename);
if (match.Success) assemblies.Add(match);
Expand Down
2 changes: 1 addition & 1 deletion source/VersionHandlerImpl/src/VersionHandlerImpl.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2726,7 +2726,7 @@ public static string[] SearchAssetDatabase(string assetsFilter = null,
}
var assetGuids = searchDirectories == null ? AssetDatabase.FindAssets(assetsFilter) :
AssetDatabase.FindAssets(assetsFilter, searchDirectories);
foreach (string assetGuid in assetGuids) {
foreach (var assetGuid in assetGuids) {
string filename = AssetDatabase.GUIDToAssetPath(assetGuid);
// Ignore non-existent files as it's possible for the asset database to reference
// missing files if it hasn't been refreshed or completed a refresh.
Expand Down

0 comments on commit c04bc92

Please sign in to comment.