Skip to content

Commit

Permalink
fix: change isOfType to method
Browse files Browse the repository at this point in the history
Co-authored-by: Maciej Urbańczyk <urbanczyk.maciej.95@gmail.com>
  • Loading branch information
imabp and magicmatatjahu authored Aug 24, 2022
1 parent 8a5854d commit 8b6d026
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/problem.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,9 @@ export class Problem extends Error implements ProblemInterface {
return { ...rest };
}

isOfType = (type: string) => this.type === type;
isOfType(type: string) {
return this.type === type;
}

async update({ updates }: UpdateProblemParamType) {
const thisContext = this;
Expand Down

0 comments on commit 8b6d026

Please sign in to comment.