Skip to content

Commit 9631848

Browse files
wtgtybhertgeghgtwtgSBoudrias
authored andcommitted
Use string.prototype.repeat over repeating. (#504)
1 parent 71ae911 commit 9631848

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

lib/routes/exit.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
11
'use strict';
22
var yosay = require('yosay');
3-
var repeating = require('repeating');
43

54
module.exports = function (app) {
65
app.insight.track('yoyo', 'exit');
76

87
var PADDING = 5;
98
var url = 'http://yeoman.io';
109
var maxLength = url.length + PADDING;
11-
var newLine = repeating(' ', maxLength);
10+
var newLine = ' '.repeat(maxLength);
1211

1312
console.log(yosay(
1413
'Bye from us!' +

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@
5959
"package-json": "^2.1.0",
6060
"parse-help": "^0.1.1",
6161
"read-pkg-up": "^2.0.0",
62-
"repeating": "^2.0.0",
6362
"root-check": "^1.0.0",
6463
"sort-on": "^1.0.0",
6564
"string-length": "^1.0.0",

0 commit comments

Comments
 (0)