Skip to content
This repository has been archived by the owner on Jul 15, 2021. It is now read-only.

Commit

Permalink
Fix cannot read property of undefined. Refs #27
Browse files Browse the repository at this point in the history
  • Loading branch information
nwronski committed Oct 16, 2016
1 parent dd482e3 commit 0b5109f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export default function sqliteParser(source, options, callback) {
}
const isAsync = typeof callback === 'function';
const opts = { 'tracer': t, 'startRule': 'start' };
if (options.streaming) {
if (options && options.streaming) {
opts['startRule'] = 'start_streaming';
}
if (isAsync) {
Expand Down

0 comments on commit 0b5109f

Please sign in to comment.