mirror of
https://github.com/nbd-wtf/nostr-tools.git
synced 2025-12-08 16:28:49 +00:00
just format
This commit is contained in:
4
nip13.ts
4
nip13.ts
@@ -1,4 +1,4 @@
|
||||
import {hexToBytes} from '@noble/hashes/utils'
|
||||
import { hexToBytes } from '@noble/hashes/utils'
|
||||
|
||||
/** Get POW difficulty from a Nostr hex ID. */
|
||||
export function getPow(id: string): number {
|
||||
@@ -34,7 +34,7 @@ function msb(b: number) {
|
||||
}
|
||||
|
||||
// eslint-disable-next-line no-cond-assign
|
||||
while (b >>= 1) {
|
||||
while ((b >>= 1)) {
|
||||
n++
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user