Skip to content

Commit

Permalink
Wrong name of the callback. Unnecessarily verbose name of error.
Browse files Browse the repository at this point in the history
  • Loading branch information
honzajavorek committed Mar 1, 2016
1 parent d9fdb72 commit 6d90e68
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/dredd.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -162,8 +162,8 @@ class Dredd
callback(null, @stats)

readLocalFile: (filePath, callback) ->
fs.readFile filePath, 'utf8', (readingError, data) =>
return readCallback(readingError) if readingError
fs.readFile filePath, 'utf8', (err, data) =>
return callback(err) if err
@configuration.data[filePath] = {raw: data, filename: filePath}
callback(null, @stats)

Expand Down

0 comments on commit 6d90e68

Please sign in to comment.