Skip to content

Commit

Permalink
馃毃 Fix Web.ts linter errors
Browse files Browse the repository at this point in the history
  • Loading branch information
47PADO47 committed Aug 13, 2022
1 parent ec958a4 commit 231e985
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/classes/Web.ts
Expand Up @@ -70,7 +70,7 @@ class Web {
.json()
.catch(() => this.#error("Could not parse JSON"));

if (json.error && json.error.length > 0) return this.#error(json.error);
if (json?.error && json.error?.length > 0) return this.#error(json.error);

const cookies = response.headers.get("Set-Cookie");
const cookie = cookies?.split(", ").pop();
Expand Down Expand Up @@ -105,7 +105,7 @@ class Web {
type: "",
};
return !this.authorized;
};
}

async getAgenda(
start: Date = new Date(),
Expand Down

0 comments on commit 231e985

Please sign in to comment.