diff options
author | Vijay A <vraravam@users.noreply.github.com> | 2023-05-28 13:48:21 +0530 |
---|---|---|
committer | Vijay A <vraravam@users.noreply.github.com> | 2023-05-28 13:48:21 +0530 |
commit | 99ca310c73024b51fed1f3077375eed7827f2c20 (patch) | |
tree | 2bd15986f448129a2291acba90ccc6bf68a233e0 /src/stores/AppStore.ts | |
parent | Disable in-app auto-updates for portable windows installation (fixes #1088) (... (diff) | |
download | ferdium-app-99ca310c73024b51fed1f3077375eed7827f2c20.tar.gz ferdium-app-99ca310c73024b51fed1f3077375eed7827f2c20.tar.zst ferdium-app-99ca310c73024b51fed1f3077375eed7827f2c20.zip |
Fix issues reported by sonarqube linter
Diffstat (limited to 'src/stores/AppStore.ts')
-rw-r--r-- | src/stores/AppStore.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/stores/AppStore.ts b/src/stores/AppStore.ts index 18b38799e..82591a2a4 100644 --- a/src/stores/AppStore.ts +++ b/src/stores/AppStore.ts | |||
@@ -212,7 +212,7 @@ export default class AppStore extends TypedStore { | |||
212 | } | 212 | } |
213 | 213 | ||
214 | if (data.error) { | 214 | if (data.error) { |
215 | if (data.error.message && data.error.message.startsWith('404')) { | 215 | if (data.error.message?.startsWith('404')) { |
216 | this.updateStatus = this.updateStatusTypes.NOT_AVAILABLE; | 216 | this.updateStatus = this.updateStatusTypes.NOT_AVAILABLE; |
217 | console.warn( | 217 | console.warn( |
218 | 'Updater warning: there seems to be unpublished pre-release(s) available on GitHub', | 218 | 'Updater warning: there seems to be unpublished pre-release(s) available on GitHub', |
@@ -350,7 +350,7 @@ export default class AppStore extends TypedStore { | |||
350 | if (this.stores.settings.all.app.isAppMuted) return; | 350 | if (this.stores.settings.all.app.isAppMuted) return; |
351 | 351 | ||
352 | // TODO: is there a simple way to use blobs for notifications without storing them on disk? | 352 | // TODO: is there a simple way to use blobs for notifications without storing them on disk? |
353 | if (options.icon && options.icon.startsWith('blob:')) { | 353 | if (options.icon?.startsWith('blob:')) { |
354 | delete options.icon; | 354 | delete options.icon; |
355 | } | 355 | } |
356 | 356 | ||