Skip to content

Commit

Permalink
chore: types
Browse files Browse the repository at this point in the history
  • Loading branch information
wkillerud committed Nov 13, 2024
1 parent be4d3dc commit e22928d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lib/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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);
Expand Down Expand Up @@ -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);
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit e22928d

Please sign in to comment.