Skip to content

Commit

Permalink
fix: drop unused variables (#203)
Browse files Browse the repository at this point in the history
  • Loading branch information
viceice authored Nov 12, 2024
1 parent 63ac987 commit d78e631
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ export function satisfies(version: string, range: string): boolean {
const v = new Version(version);
const r = new Requirement(...range.split(/\s*,\s*/));
return r.isSatisfiedBy(v);
} catch (_) {
} catch {
return false;
}
}
Expand Down
4 changes: 2 additions & 2 deletions lib/ruby/requirement.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ export class Requirement {
if (input instanceof Version) return new Requirement(input);
try {
return new Requirement(copystr(input.toString()));
} catch (_) {
} catch {
return Requirement.default();
}
}
Expand Down Expand Up @@ -185,7 +185,7 @@ export class Requirement {
let objStr;
try {
objStr = copystr(obj.toString());
} catch (_) {
} catch {
err();
}

Expand Down
2 changes: 1 addition & 1 deletion lib/ruby/version.ts
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ export class Version {
let versionStr;
try {
versionStr = copystr(version.toString());
} catch (_) {
} catch {
return false;
}

Expand Down

0 comments on commit d78e631

Please sign in to comment.