removed class extension

This commit is contained in:
mmacierzanka committed 2021-10-08 18:38:25 +02:00
1 parent f1e7ad1a27
commit e6c220b1c5
1 file changed
+1 -3
+1 -3
View File
@@ -1,11 +1,9 @@
import axios from "axios";
import { EventEmitter } from "events";
export class APIClient extends EventEmitter {
export class APIClient {
#dbUrl = "";
constructor(dbUrl) {
super();
if (typeof dbUrl !== "string") throw new Error("Database URL is not a string");
this.#dbUrl = dbUrl;
}