Skip to content

Commit

Permalink
fix typo in RawSource
Browse files Browse the repository at this point in the history
  • Loading branch information
elevenpassin committed Feb 15, 2023
1 parent 9f98066 commit cdb8e42
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/RawSource.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class RawSource extends Source {
super();
const isBuffer = Buffer.isBuffer(value);
if (!isBuffer && typeof value !== "string") {
throw new TypeError("argument 'value' must be either string of Buffer");
throw new TypeError("argument 'value' must be either string or Buffer");
}
this._valueIsBuffer = !convertToString && isBuffer;
this._value = convertToString && isBuffer ? undefined : value;
Expand Down

0 comments on commit cdb8e42

Please sign in to comment.