Skip to content

Commit e1681ba

Browse files
author
Robert Jackson
committed
Fixup linting failures in lib/migrator.js
* remove unused `template` import * remove unneeded escape for regexp
1 parent bdd2b87 commit e1681ba

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/migrator.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ const {
1010
} = require('./utils/templates');
1111
const { moveFile, removeDirs } = require('./utils/file');
1212
const { transform: dropLayoutBinding } = require('./utils/rewrite-imports');
13-
const { template } = require('jscodeshift');
1413

1514
/**
1615
* @typedef {object} Options
@@ -137,7 +136,7 @@ module.exports = class Migrator {
137136
138137
If `filePathFromApp` matches the latter pattern, we remove the hyphen.
139138
*/
140-
if (/\/\-[\w\-]+\.hbs/.test(filePathFromApp)) {
139+
if (/\/-[\w-]+\.hbs/.test(filePathFromApp)) {
141140
filePathFromApp = filePathFromApp.replace('/-', '/');
142141
}
143142

0 commit comments

Comments
 (0)