Skip to content

Commit

Permalink
small fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ygrik committed Feb 13, 2025
1 parent 2637b9b commit d3572c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/services/mapiClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ export class MapiClient {
private createMapiError(statusCode: number, url: string, getError: () => any): any {
switch (statusCode) {
case 400:
const error = getError();
let error = getError();

Check failure

Code scanning / ESLint

Disallow lexical declarations in case clauses Error

Unexpected lexical declaration in case block.

Check warning

Code scanning / ESLint

Require `const` declarations for variables that are never reassigned after declared Warning

'error' is never reassigned. Use 'const' instead.
if (error.code && error.message) {
return new MapiError(error.code, error.message, error.details);
}
Expand Down

0 comments on commit d3572c9

Please sign in to comment.