Skip to content

Commit

Permalink
Fix small internal typo
Browse files Browse the repository at this point in the history
  • Loading branch information
namuol authored Oct 9, 2016
1 parent 22b7aa5 commit 5183283
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/tap-difflet
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ var options = docopt(usage, {
version: pkg.version,
});

function getOptionsWithotDashes(options) {
function getOptionsWithoutDashes(options) {
const transformedOptions = {}
Object.keys(options).forEach(key => {
const keyWithoutDashes = key.replace(/^(--|-)/, '');
Expand All @@ -28,7 +28,7 @@ function getOptionsWithotDashes(options) {
return transformedOptions;
}

var formatter = require('..')(getOptionsWithotDashes(options));
var formatter = require('..')(getOptionsWithoutDashes(options));

process.stdin.pipe(formatter).pipe(process.stdout);
process.on('exit', function () {
Expand Down

0 comments on commit 5183283

Please sign in to comment.