Skip to content

Commit d41249b

Browse files
committed
fix:eslint error no-unused-vars
1 parent 01b2ccc commit d41249b

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

lib/rules/no-restricted-call-after-await.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ function safeRequireResolve(id) {
2121
if (fs.statSync(id).isDirectory()) {
2222
return require.resolve(id)
2323
}
24-
} catch (_error) {
24+
} catch {
2525
// ignore
2626
}
2727
return id

lib/rules/no-unsupported-features.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ function getSemverRange(x) {
5757
if (!ret) {
5858
try {
5959
ret = new semver.Range(s)
60-
} catch (_error) {
60+
} catch {
6161
// Ignore parsing error.
6262
}
6363
cache.set(s, ret)

lib/utils/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ function wrapContextToOverrideTokenMethods(context, tokenStore, options) {
301301
})
302302
containerScopes.set(exprContainer, scope)
303303
return scope
304-
} catch (error) {
304+
} catch {
305305
// ignore
306306
// console.log(error)
307307
}

lib/utils/selector.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ function parseSelector(selector, context) {
2323
let astSelector
2424
try {
2525
astSelector = parser().astSync(selector)
26-
} catch (error) {
26+
} catch {
2727
context.report({
2828
loc: { line: 0, column: 0 },
2929
message: `Cannot parse selector: ${selector}.`
@@ -554,7 +554,7 @@ function parseNth(pseudoNode) {
554554
.trim()
555555
try {
556556
return nthCheck(argument)
557-
} catch (error) {
557+
} catch {
558558
throw new SelectorError(
559559
`Cannot parse An+B micro syntax (:nth-xxx() argument): '${argument}'.`
560560
)

0 commit comments

Comments
 (0)