Skip to content

Commit 861b361

Browse files
authored
Merge pull request #120 from iainjreid/remove-right-pad
Remove right pad
2 parents e7bd546 + 47b9464 commit 861b361

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

engine.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
var wrap = require('word-wrap');
44
var map = require('lodash.map');
55
var longest = require('longest');
6-
var rightPad = require('right-pad');
76
var chalk = require('chalk');
87

98
var filter = function(array) {
@@ -43,7 +42,7 @@ module.exports = function(options) {
4342
var length = longest(Object.keys(types)).length + 1;
4443
var choices = map(types, function(type, key) {
4544
return {
46-
name: rightPad(key + ':', length) + ' ' + type.description,
45+
name: (key + ':').padEnd(length) + ' ' + type.description,
4746
value: key
4847
};
4948
});

package-lock.json

+8
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
"conventional-commit-types": "^3.0.0",
2727
"lodash.map": "^4.5.1",
2828
"longest": "^2.0.1",
29-
"right-pad": "^1.0.1",
3029
"word-wrap": "^1.0.3"
3130
},
3231
"devDependencies": {

0 commit comments

Comments
 (0)