Skip to content

Commit

Permalink
fix: username might be a number (#203)
Browse files Browse the repository at this point in the history
  • Loading branch information
simon300000 authored and Berkmann18 committed Sep 16, 2019
1 parent 1dccd9f commit a91145f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ function startGeneration(argv) {
}

function addContribution(argv) {
const username = argv._[1]
const username = String(argv._[1])
const contributions = argv._[2]
// Add or update contributor in the config file
return updateContributors(argv, username, contributions).then(data => {
Expand Down

0 comments on commit a91145f

Please sign in to comment.