Skip to content

Commit 11cb5cd

Browse files
committed
fixup! fix: code refactoring
Signed-off-by: Oleksii Orel <[email protected]>
1 parent 81feab7 commit 11cb5cd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/generate.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,8 +157,8 @@ export class Generate {
157157
devWorkspaceMetadata.generateName = devfileMetadata.generateName;
158158
}
159159
if (devfile.attributes?.[DEVWORKSPACE_METADATA_ANNOTATION]) {
160-
devWorkspaceMetadata.annotations = Object.assign({}, devfile.attributes?.[DEVWORKSPACE_METADATA_ANNOTATION]);
161-
delete devfile.attributes?.[DEVWORKSPACE_METADATA_ANNOTATION];
160+
devWorkspaceMetadata.annotations = Object.assign({}, devfile.attributes[DEVWORKSPACE_METADATA_ANNOTATION]);
161+
delete devfile.attributes[DEVWORKSPACE_METADATA_ANNOTATION];
162162
if (Object.keys(devfile.attributes).length === 0) {
163163
delete devfile.attributes;
164164
}

0 commit comments

Comments
 (0)