Skip to content

Commit

Permalink
Sonar: Use an object spread instead of Object.assign eg: { ...foo }
Browse files Browse the repository at this point in the history
  • Loading branch information
qmonmert committed Sep 17, 2023
1 parent 1d133ad commit 365cf12
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,6 @@ export class JdlMetadataService {
}

private convert(jdlMetadata: JdlMetadata): JdlMetadata {
return Object.assign({}, jdlMetadata);
return { ...jdlMetadata };
}
}

0 comments on commit 365cf12

Please sign in to comment.