Skip to content

Commit e621b60

Browse files
committed
Convert to arrow function
1 parent 240d1be commit e621b60

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

extension/js/common/core/pgp-key.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,7 @@ export class PgpKey {
386386
}
387387
}
388388

389-
public static getKeyType(pubkey: string): 'openpgp' | 'x509' | 'unknown' {
389+
public static getKeyType = (pubkey: string): 'openpgp' | 'x509' | 'unknown' => {
390390
if (pubkey.startsWith('-----BEGIN CERTIFICATE-----')) {
391391
return 'x509';
392392
} else if (pubkey.startsWith('-----BEGIN PGP PUBLIC KEY BLOCK-----')) {

0 commit comments

Comments
 (0)