Skip to content

Commit

Permalink
refactoring: lint create and duplicate
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolaslabbe committed Oct 5, 2016
1 parent 51840e6 commit 9899dff
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/cli/cms/data/fileAttr.js
@@ -1,4 +1,4 @@
import attr from "./attr";
import attr from './attr'

/**
* Class FileAttr
Expand Down
3 changes: 1 addition & 2 deletions src/cli/cms/operations/create.js
Expand Up @@ -49,15 +49,14 @@ var create = function(template, pathCreate, name, req, forceJson = {}, duplicate
console.error(e)
})
}else {
var json = FileParser.getJson(tplUrl.json.path)
json = FileParser.getJson(tplUrl.json.path)
resolve(json, tplUrl.json.path)
}
}else {
reject()
}
}).catch(function(e) {
console.error(e)
reject()
})

return p
Expand Down
5 changes: 0 additions & 5 deletions src/cli/cms/operations/duplicate.js
@@ -1,13 +1,8 @@
import path from 'path'
import {
Hooks,
fileUtils,
FileParser,
Util,
Manager,
cleanSlug,
config,
save,
cmsOperations
} from '../../'

Expand Down

0 comments on commit 9899dff

Please sign in to comment.