Skip to content

Commit

Permalink
Always require curly brackets
Browse files Browse the repository at this point in the history
  • Loading branch information
osk committed Jul 18, 2019
1 parent 8bded00 commit edacdc0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 1 addition & 2 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,7 @@
"block-scoped-var": 2,
"consistent-return": 2,
"curly": [
2,
"multi-line"
"error"
],
"default-case": 2,
"dot-notation": [
Expand Down
4 changes: 3 additions & 1 deletion lib/parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ ParserError.prototype = Object.create(Error.prototype);
const TIMESTAMP_REGEXP = /([0-9]{1,2})?:?([0-9]{2}):([0-9]{2}\.[0-9]{3})/;

function parse (input, options) {
if (!options) options = {};
if (!options) {
options = {};
}

options = {
meta: options.meta === true
Expand Down

0 comments on commit edacdc0

Please sign in to comment.