Skip to content

Commit

Permalink
fix linter errors
Browse files Browse the repository at this point in the history
  • Loading branch information
infeo committed Apr 19, 2024
1 parent 04752fa commit 223a395
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions frontend/src/common/crypto.ts
Original file line number Diff line number Diff line change
Expand Up @@ -441,11 +441,11 @@ export class BrowserKeys {
export async function getFingerprint(key: string | undefined) {
if (key) {
const encodedKey = new TextEncoder().encode(key);
const hashBuffer = await crypto.subtle.digest("SHA-256", encodedKey);
const hashBuffer = await crypto.subtle.digest('SHA-256', encodedKey);
const hashArray = Array.from(new Uint8Array(hashBuffer));
const hashHex = hashArray
.map((b) => b.toString(16).padStart(2, "0").toUpperCase())
.join("");
.map((b) => b.toString(16).padStart(2, '0').toUpperCase())
.join('');
return hashHex;
}
}
2 changes: 1 addition & 1 deletion frontend/src/components/GrantPermissionDialog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ onMounted(fetchData);
async function fetchData() {
for (const user of props.users) {
userKeyFingerprints.value.set(user.id, await getFingerprint(user.publicKey))
userKeyFingerprints.value.set(user.id, await getFingerprint(user.publicKey));
}
}
Expand Down

0 comments on commit 223a395

Please sign in to comment.