Skip to content

Commit

Permalink
Removing unneeded whitespace.
Browse files Browse the repository at this point in the history
  • Loading branch information
LakeGH committed Nov 14, 2019
1 parent 13843e5 commit e7f282a
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ function jsQR(data: Uint8ClampedArray, width: number, height: number, providedOp

const tryInvertedFirst = options.inversionAttempts === "onlyInvert" || options.inversionAttempts === "invertFirst";
const shouldInvert = options.inversionAttempts === "attemptBoth" || tryInvertedFirst;

const {binarized, inverted} = binarize(data, width, height, shouldInvert);
let result = scan(tryInvertedFirst ? inverted : binarized);
if (!result && (options.inversionAttempts === "attemptBoth" || options.inversionAttempts === "invertFirst")) {
Expand Down

0 comments on commit e7f282a

Please sign in to comment.