Skip to content

Commit

Permalink
refactor: return type directly
Browse files Browse the repository at this point in the history
  • Loading branch information
egoist committed Jan 3, 2017
1 parent fd41c6b commit 4e3e309
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions lib/semantic-type.js
Expand Up @@ -19,8 +19,5 @@ module.exports = function (type) {
minor: 'minor',
major: 'major'
}
if (types[type]) {
return types[type]
}
return null
return types[type]
}

0 comments on commit 4e3e309

Please sign in to comment.