We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 868b071 commit 9841898Copy full SHA for 9841898
src/core/index.ts
@@ -664,9 +664,9 @@ function checkParameters(parameters: Buffer[]) {
664
);
665
}
666
parameters.forEach((p, index) => {
667
- if (p instanceof Buffer) {
+ if (!(p instanceof Buffer)) {
668
throw Error(
669
- `Expedted an item of parameters to be an instance of Buffer but found ${p} at index ${index}`
+ `Expected an item of parameters to be a Buffer instance but found ${p} at index ${index}`
670
671
672
});
0 commit comments