biome lint --write
This commit is contained in:
parent
b9a77cc61d
commit
8372348148
10 changed files with 27 additions and 27 deletions
|
|
@ -37,7 +37,7 @@ export class RegistrationError extends Error {
|
|||
if (typeof error === 'string') {
|
||||
error = JSON.parse(error)
|
||||
// eslint-disable-next-line
|
||||
if (error.hasOwnProperty('error')) {
|
||||
if (Object.hasOwn(error, 'error')) {
|
||||
error = JSON.parse(error.error)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue