Skip to content

Commit

Permalink
refactor: fix some no-unused-vars lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianschmidt committed Jul 31, 2024
1 parent 406316c commit ee8f1a8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion publish-docs.js
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ function copyBuildOutput() {
// Create `versions` folder if it doesn't already exist.
try {
shell.mkdir('docsDist/versions');
} catch (e) {
} catch {
// If mkdir failed, it's almost certainly because the dir already exists.
// Just ignore the error.
}
Expand Down
2 changes: 1 addition & 1 deletion src/components/callout/callout.helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export function getHeading(

try {
return translate.get(key, language);
} catch (error) {
} catch {
return translate.get(key, 'en');
}
}
4 changes: 2 additions & 2 deletions src/components/form/widgets/code-editor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export class CodeEditor extends React.Component {

try {
value = JSON.stringify(props.formData, null, ' ');
} catch (e) {
} catch {
// N/A
}

Expand Down Expand Up @@ -46,7 +46,7 @@ export class CodeEditor extends React.Component {

props.onChange(value);
props.onValidate();
} catch (e) {
} catch {
props.onValidate('Should be a valid JSON document');
}
}
Expand Down

0 comments on commit ee8f1a8

Please sign in to comment.