Skip to content

Commit

Permalink
Rename unused args in typescript
Browse files Browse the repository at this point in the history
  • Loading branch information
dannon committed Oct 16, 2023
1 parent d82b460 commit 5559a2f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export const NULL_COLLECTION_TYPE_DESCRIPTION: CollectionTypeDescriptor = {
isCollection: false,
collectionType: null,
rank: 0,
canMatch: function (other) {
canMatch: function (_other) {
return false;
},
canMapOver: function () {
Expand All @@ -36,7 +36,7 @@ export const NULL_COLLECTION_TYPE_DESCRIPTION: CollectionTypeDescriptor = {
equal: function (other) {
return other === this;
},
effectiveMapOver: function (other: CollectionTypeDescriptor) {
effectiveMapOver: function (_other: CollectionTypeDescriptor) {
return NULL_COLLECTION_TYPE_DESCRIPTION;
},
};
Expand All @@ -60,7 +60,7 @@ export const ANY_COLLECTION_TYPE_DESCRIPTION: CollectionTypeDescriptor = {
equal: function (other) {
return other === this;
},
effectiveMapOver: function (other: CollectionTypeDescriptor) {
effectiveMapOver: function (_other: CollectionTypeDescriptor) {
return NULL_COLLECTION_TYPE_DESCRIPTION;
},
};
Expand Down
6 changes: 3 additions & 3 deletions client/src/components/Workflow/Editor/modules/terminals.ts
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ class Terminal extends EventEmitter {
isMappedOver(): boolean {
return Boolean(this.mapOver.isCollection);
}
resetMapping(connection?: Connection) {
resetMapping(_connection?: Connection) {
this.stepStore.changeStepMapOver(this.stepId, NULL_COLLECTION_TYPE_DESCRIPTION);
this.stepStore.resetStepInputMapOver(this.stepId);
}
Expand Down Expand Up @@ -224,7 +224,7 @@ class BaseInputTerminal extends Terminal {
return this.attachable(outputTerminal);
}
}
attachable(terminal: BaseOutputTerminal): ConnectionAcceptable {
attachable(_terminal: BaseOutputTerminal): ConnectionAcceptable {
// TODO: provide through Mixin
throw Error("Subclass needs to implement this");
}
Expand Down Expand Up @@ -444,7 +444,7 @@ export class InvalidInputTerminal extends BaseInputTerminal {
this.localMapOver = NULL_COLLECTION_TYPE_DESCRIPTION;
}

attachable(terminal: BaseOutputTerminal) {
attachable(_terminal: BaseOutputTerminal) {
return new ConnectionAcceptable(false, "Cannot attach to invalid input. Disconnect this input.");
}
}
Expand Down

0 comments on commit 5559a2f

Please sign in to comment.