Skip to content

Commit e0969a0

Browse files
committed
Remove unused api parameter
1 parent 2664786 commit e0969a0

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

transforms/angle-brackets/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ const shouldSkipFile = (fileInfo, config) => {
238238
return false;
239239
};
240240

241-
function transform(fileInfo, api, config) {
241+
function transform(fileInfo, config) {
242242
if (shouldSkipFile(fileInfo, config)) {
243243
return fileInfo.source;
244244
}
@@ -510,11 +510,11 @@ function transform(fileInfo, api, config) {
510510
return prettier.format(dataOk, { parser: 'glimmer' });
511511
}
512512

513-
module.exports = function(file, api) {
513+
module.exports = function(file) {
514514
try {
515515
let options = getOptions();
516516
let config = new Config(options);
517-
return transform(file, api, config);
517+
return transform(file, config);
518518
} catch (e) {
519519
throw new Error(
520520
`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}`

0 commit comments

Comments
 (0)