Skip to content

Commit c2a07d9

Browse files
committed
refactor: Fix SonarCloud warning: use object spread instead of Object.assign()
1 parent 6b1c2e6 commit c2a07d9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Task/TaskLocation.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ export class TaskLocation {
8787
}
8888

8989
public allFieldsExceptTasksFileForTesting() {
90-
const { _tasksFile, ...rest } = Object.assign({}, this);
90+
const { _tasksFile, ...rest } = { ...this };
9191
return rest;
9292
}
9393
}

0 commit comments

Comments
 (0)