()
| 31 | } |
| 32 | |
| 33 | async initGPG() { |
| 34 | const hasGpgKeyring = this.has(GNUPG_KEYRING_ID); |
| 35 | if (hasGpgKeyring || keyringFirstTimeLoad) { |
| 36 | await initNativeMessaging(); |
| 37 | } |
| 38 | if (gpgme) { |
| 39 | if (!hasGpgKeyring) { |
| 40 | await this.create(GNUPG_KEYRING_ID); |
| 41 | } |
| 42 | } else { |
| 43 | if (hasGpgKeyring) { |
| 44 | await this.delete(GNUPG_KEYRING_ID); |
| 45 | } |
| 46 | } |
| 47 | } |
| 48 | |
| 49 | get(keyringId, attrKey) { |
| 50 | if (!this.has(keyringId)) { |
no test coverage detected