[refactor] remove 6 floating-promise ignores (#5985)
* Remove trivial floating promise in authMachine * Add catch statement so LSP promise is considered non-floating * Remove trivial float in AllSettingsFields * Add error reporting for ensureWasmInit * Remove pointless floating promise in Modeling * Add comment and reportRejection to floating promise in "set selection" * Read comment, put back await that should be there * Fix dumb imports rebase botch * Missed an import --------- Co-authored-by: Jess Frazelle <jessfraz@users.noreply.github.com>
This commit is contained in:
@ -238,8 +238,9 @@ async function getAndSyncStoredToken(input: {
|
||||
if (token) {
|
||||
// has just logged in, update storage
|
||||
localStorage.setItem(TOKEN_PERSIST_KEY, token)
|
||||
// eslint-disable-next-line @typescript-eslint/no-floating-promises
|
||||
isDesktop() && writeTokenFile(token)
|
||||
if (isDesktop()) {
|
||||
await writeTokenFile(token)
|
||||
}
|
||||
return token
|
||||
}
|
||||
if (!isDesktop()) return ''
|
||||
|
Reference in New Issue
Block a user