Skip to content

Commit

Permalink
fix: fix lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
tams sokari committed Nov 1, 2023
1 parent ca36a34 commit f42e78d
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions packages/components/smart-camera-web.js
Original file line number Diff line number Diff line change
Expand Up @@ -1186,15 +1186,15 @@ class PoweredBySmileId extends HTMLElement {
}

function hasMoreThanNColors(data, n = 16) {
const colors = new Set();
for (let i = 0; i < Math.min(data.length, 10000); i += 4) {
// eslint-disable-next-line no-bitwise
colors.add((data[i] << 16) | (data[i + 1] << 8) | data[i + 2]);
if (colors.size > n) {
return true;
}
}
return false;
const colors = new Set();
for (let i = 0; i < Math.min(data.length, 10000); i += 4) {
// eslint-disable-next-line no-bitwise
colors.add((data[i] << 16) | (data[i + 1] << 8) | data[i + 2]);
if (colors.size > n) {
return true;
}
}
return false;
}

window.customElements.define('powered-by-smile-id', PoweredBySmileId);
Expand Down

0 comments on commit f42e78d

Please sign in to comment.