Skip to content

Commit

Permalink
chore: Remove use of util.format
Browse files Browse the repository at this point in the history
  • Loading branch information
orangejulius committed Aug 21, 2019
1 parent 8948818 commit 2a1be89
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions lib/generateParams.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
const util = require('util');

function generateParams(config) {
const flags = [];

if (config.tags) {
const tags = config.tags.join(',');
flags.push( util.format( '-tags=%s', tags ) );
flags.push( `-tags=${tags}` );
}
if( config.hasOwnProperty( 'leveldb' ) ){
flags.push( util.format( '-leveldb=%s', config.leveldb ) );
flags.push( `-leveldb=${config.leveldb}` );
}

flags.push( config.file );

return flags;
Expand Down

0 comments on commit 2a1be89

Please sign in to comment.