We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 240d1be commit e621b60Copy full SHA for e621b60
extension/js/common/core/pgp-key.ts
@@ -386,7 +386,7 @@ export class PgpKey {
386
}
387
388
389
- public static getKeyType(pubkey: string): 'openpgp' | 'x509' | 'unknown' {
+ public static getKeyType = (pubkey: string): 'openpgp' | 'x509' | 'unknown' => {
390
if (pubkey.startsWith('-----BEGIN CERTIFICATE-----')) {
391
return 'x509';
392
} else if (pubkey.startsWith('-----BEGIN PGP PUBLIC KEY BLOCK-----')) {
0 commit comments