diff options
| author | stonedDiscord <Tukz@gmx.de> | 2021-06-08 21:17:45 +0200 |
|---|---|---|
| committer | stonedDiscord <Tukz@gmx.de> | 2021-06-08 21:17:45 +0200 |
| commit | a4c609ebf99a8e18d61c3137b59a0e6c2870e520 (patch) | |
| tree | e827f618fe603d1d058d645e66ad8195db4b5723 /webAO/client.js | |
| parent | c55e8537da2bba4285d166c4753fed89e53a7ea6 (diff) | |
just return false whatever state the file is in
Diffstat (limited to 'webAO/client.js')
| -rw-r--r-- | webAO/client.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/webAO/client.js b/webAO/client.js index 011f63e..b993396 100644 --- a/webAO/client.js +++ b/webAO/client.js @@ -2742,8 +2742,7 @@ async function fileExists(url) { await request(url); return true; } catch (err) { - if (err.code >= 400) return false; - else throw err; + return false; } } |
