Skip to content

Commit 4096393

Browse files
committed
refactor: remove an always false switch case
1 parent 4ed3f23 commit 4096393

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/index.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4553,8 +4553,7 @@ function keyToSubtle(key: CryptoKey): AlgorithmIdentifier | RsaPssParams | Ecdsa
45534553
case 'RSASSA-PKCS1-v1_5':
45544554
checkRsaKeyAlgorithm(key)
45554555
return key.algorithm.name
4556-
case 'Ed25519': // Fall through
4557-
case 'EdDSA':
4556+
case 'Ed25519':
45584557
return key.algorithm.name
45594558
}
45604559
throw new UnsupportedOperationError('unsupported CryptoKey algorithm name', { cause: key })

0 commit comments

Comments
 (0)