Skip to content

Commit

Permalink
Fix indexOf from array to list
Browse files Browse the repository at this point in the history
  • Loading branch information
Freezor committed Jun 10, 2024
1 parent 9dd8819 commit 04c46ab
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,8 @@ private bool IsAssetAdministrationShellPresent(string aasIdentifier, out IAssetA
if (aas.Any())
{
output = aas.First();
packageIndex = Array.IndexOf(_packages, package);
packageIndex = _packages.IndexOf(package);

return true;
}
}
Expand Down Expand Up @@ -277,7 +278,7 @@ public bool IsSubmodelPresent(string submodelIdentifier, out ISubmodel output, o
}
*/
output = submodels.First();
packageIndex = Array.IndexOf(_packages, package);
packageIndex = _packages.IndexOf(package);
return true;
}
}
Expand Down Expand Up @@ -332,7 +333,7 @@ private bool IsConceptDescriptionPresent(string cdIdentifier, out IConceptDescri
if (conceptDescriptions.Any())
{
output = conceptDescriptions.First();
packageIndex = Array.IndexOf(_packages, package);
packageIndex = _packages.IndexOf(package);
return true;
}
}
Expand Down

0 comments on commit 04c46ab

Please sign in to comment.