From 7c2d68668c1d3b13024b9064965cdbcb3916deea Mon Sep 17 00:00:00 2001 From: Pawel Idczak Date: Sat, 6 Jan 2024 21:47:29 +0100 Subject: [PATCH] refactor: remove unnecessary assertion --- src/bir.ts | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/bir.ts b/src/bir.ts index ed91bd0..ecd69aa 100644 --- a/src/bir.ts +++ b/src/bir.ts @@ -175,10 +175,8 @@ export default class Bir { /** * Logout (method: Wyloguj) - * */ async logout() { - assert(this.sid, new BirError('Not loggged in')) const body = await template('Wyloguj', { sid: this.sid }) const response = await this.api({ body }) soapResult(response.body)