Skip to content

Commit

Permalink
removed left-pad module (GoogleCloudPlatform#218)
Browse files Browse the repository at this point in the history
  • Loading branch information
dineshnagarit authored and ahmetb committed May 22, 2019
1 parent 27df445 commit ce03eb3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion src/currencyservice/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ const request = {
};

function _moneyToString (m) {
return `${m.units}.${leftPad(m.nanos, 9, '0')} ${m.currency_code}`;
return `${m.units}.${m.nanos.toString().padStart(9,'0')} ${m.currency_code}`;
}

client.getSupportedCurrencies({}, (err, response) => {
Expand Down
1 change: 0 additions & 1 deletion src/currencyservice/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
"async": "^1.5.2",
"google-protobuf": "^3.0.0",
"grpc": "^1.0.0",
"left-pad": "^1.3.0",
"pino": "^5.6.2",
"request": "^2.87.0",
"xml2js": "^0.4.19"
Expand Down

0 comments on commit ce03eb3

Please sign in to comment.