Skip to content

Commit f121811

Browse files
committed
Remove unnecessary Object.assign() call
There is no need to clone `file` for this
1 parent 9305372 commit f121811

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

transforms/angle-brackets/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ module.exports = function(file, api) {
1111
return;
1212
}
1313
try {
14-
src = fix(Object.assign({}, file, { source: src }), api, options);
14+
src = fix(file, api, options);
1515
} catch (e) {
1616
throw new Error(
1717
`Transformation errored on file ${file.path}. Reason ${e}. Please report this in https://github.com/ember-codemods/ember-angle-brackets-codemod/issues\n\nStack trace:\n${e.stack}\n\nSource:\n${src}`

0 commit comments

Comments
 (0)