Skip to content

Commit

Permalink
Implement PR feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
GeoffreyKarnbach committed Oct 16, 2024
1 parent e6dd714 commit dab8a04
Showing 1 changed file with 11 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -405,10 +405,17 @@ public void storageInformation() {
// written in section 5
if (!distVar.toString().isEmpty()) {
String storageDescription = "";
storageDescription =
internalStorageTranslationRepo
.getInternalStorageById(((Storage) host).getInternalStorageId().id, "eng")
.getDescription();
InternalStorageTranslation storageTranslation =
internalStorageTranslationRepo.getInternalStorageById(
((Storage) host).getInternalStorageId().id, "eng");

if (storageTranslation == null) {
storageTranslation =
internalStorageTranslationRepo.getAllInternalStorageTranslationsByStorageId(
((Storage) host).getInternalStorageId().id).get(0);
}

storageDescription = storageTranslation.getDescription();
storageVar =
storageVar.concat(
distVar
Expand Down

0 comments on commit dab8a04

Please sign in to comment.