Skip to content

Commit 7abd3fa

Browse files
Return a *copy* of the files array, so users can modify it without affecting the operation
1 parent 7e0ea6f commit 7abd3fa

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/operation.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ export class Operation {
5555
newVersion: state.newVersion,
5656
commit: options.commit ? state.commitMessage : false,
5757
tag: options.tag ? state.tagName : false,
58-
files: state.files,
58+
files: state.files.slice(),
5959
};
6060
}
6161

0 commit comments

Comments
 (0)