Merge pull request #246 from discordeno/idk

fix: resolve() -> resolve(undefined)
This commit is contained in:
Ayyan
2020-12-10 18:10:07 +04:00
committed by GitHub
2 changed files with 2 additions and 6 deletions

View File

@@ -1,9 +1,5 @@
name: Lint
on:
push:
branches: [master]
pull_request:
branches: [master]
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest

View File

@@ -248,7 +248,7 @@ async function runMethod(
handleStatusCode(response, errorStack);
// Sometimes Discord returns an empty 204 response that can't be made to JSON.
if (response.status === 204) return resolve();
if (response.status === 204) return resolve(undefined);
const json = await response.json();
if (