From e22928d1835fb3186c0485425699fe72ae94cac3 Mon Sep 17 00:00:00 2001 From: William Killerud Date: Wed, 13 Nov 2024 14:23:08 +0100 Subject: [PATCH] chore: types --- lib/main.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/main.js b/lib/main.js index 4ac8c5b..45043da 100644 --- a/lib/main.js +++ b/lib/main.js @@ -63,8 +63,8 @@ const SinkGCS = class SinkGCS extends Sink { const operation = "write"; try { - super.constructor.validateFilePath(filePath); - super.constructor.validateContentType(contentType); + Sink.validateFilePath(filePath); + Sink.validateContentType(contentType); } catch (error) { this._counter.inc({ labels: { operation } }); reject(error); @@ -109,7 +109,7 @@ const SinkGCS = class SinkGCS extends Sink { const operation = "read"; try { - super.constructor.validateFilePath(filePath); + Sink.validateFilePath(filePath); } catch (error) { this._counter.inc({ labels: { operation } }); reject(error); @@ -169,7 +169,7 @@ const SinkGCS = class SinkGCS extends Sink { const operation = "delete"; try { - super.constructor.validateFilePath(filePath); + Sink.validateFilePath(filePath); } catch (error) { this._counter.inc({ labels: { operation } }); reject(error); @@ -206,7 +206,7 @@ const SinkGCS = class SinkGCS extends Sink { const operation = "exist"; try { - super.constructor.validateFilePath(filePath); + Sink.validateFilePath(filePath); } catch (error) { this._counter.inc({ labels: { operation } }); reject(error);