-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Martaf/copyrights #320
base: main
Are you sure you want to change the base?
Martaf/copyrights #320
Conversation
|
} | ||
} | ||
|
||
if (!assetIds.IsNullOrEmpty()) |
Check warning
Code scanning / CodeQL
Dereferenced variable may be null Warning
assetIds
Variable
assetIds
if (aas != null) | ||
{ | ||
if (aas.AssetInformation != null) | ||
{ | ||
if (aas.AssetInformation.DefaultThumbnail != null && !string.IsNullOrEmpty(aas.AssetInformation.DefaultThumbnail.Path)) | ||
{ | ||
_packageEnvService.DeleteAssetInformationThumbnail(packageIndex, aas.AssetInformation.DefaultThumbnail); | ||
} | ||
else | ||
{ | ||
throw new NotFoundException($"No default thumbnail embedded in the AssetInformation of the requested AAS."); | ||
} | ||
} | ||
} |
Check notice
Code scanning / CodeQL
Nested 'if' statements can be combined Note
foreach (var submodelReference in aas.Submodels) | ||
{ | ||
if (submodelReference.Matches(body)) | ||
{ | ||
found = true; | ||
break; | ||
} | ||
} |
Check notice
Code scanning / CodeQL
Missed opportunity to use Where Note
implicitly filters its target sequence
foreach (var submodelReference in aas.Submodels) | ||
{ | ||
if (submodelReference.GetAsExactlyOneKey().Value.Equals(submodelIdentifier)) | ||
{ return true; } | ||
} |
Check notice
Code scanning / CodeQL
Missed opportunity to use Where Note
implicitly filters its target sequence
private readonly IAdminShellPackageEnvironmentService _packageEnvService; | ||
private readonly IMetamodelVerificationService _verificationService; | ||
private readonly ISubmodelService _submodelService; | ||
private AdminShellPackageEnv[] _packages; |
Check notice
Code scanning / CodeQL
Missed 'readonly' opportunity Note
Added a neutral copyright to .cs, .ps1 and .razor files.
Added a neutral copyright to .bat files (experimental).