Skip to content

Commit

Permalink
refactoring: dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
gregorybesson committed Oct 7, 2016
1 parent 2b9986e commit 39b5602
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/cli/core/utils/slug.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@ import {
export function clean(str) {

if (typeof str === 'undefined' || str === null) return null
if (str.indexOf('.') === -1) { // no extension add one
str = `${str}.${config.files.templates.extension}`
}
str = str.split('/')
str[str.length - 1] = slugify(decodeURIComponent(str[str.length - 1]))
return str.join('/')
Expand Down

0 comments on commit 39b5602

Please sign in to comment.