Skip to content

Commit

Permalink
fix(source.js): Provide null check for Source.uri during input type l…
Browse files Browse the repository at this point in the history
…ogic
  • Loading branch information
agrathwohl committed Feb 24, 2020
1 parent d32049f commit a92388d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source.js
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ class Source extends Resource {


const { uri } = this
const stream = this.uri.includes('file://') ?
const stream = this.uri !== undefined && this.uri.includes('file://') ?
this.uri : this.createReadStream(opts)

this.active()
Expand Down

0 comments on commit a92388d

Please sign in to comment.