Skip to content

Commit

Permalink
Remove trailing whitespace for tslint
Browse files Browse the repository at this point in the history
  • Loading branch information
LakeGH committed Nov 14, 2019
1 parent 4f3fef8 commit 13843e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ 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 13843e5

Please sign in to comment.