Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion packages/clients/src/api/.eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"@typescript-eslint/no-unused-vars": ["error", { "argsIgnorePattern": "defaults|request" }],
"max-classes-per-file": "off",
"tsdoc/syntax": "off",
"no-underscore-dangle": ["error", { "allowAfterThis": true }]
"no-underscore-dangle": ["error", { "allowAfterThis": true }],
"deprecation/deprecation": "off"
}
}
2 changes: 1 addition & 1 deletion packages/clients/src/scw/client-settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ export const assertValidSettings = (obj: Readonly<Settings>): void => {
// API URL.
if (!isURL(obj.apiURL)) throw new Error(`Invalid URL ${obj.apiURL}`)

if (obj.apiURL.substr(-1) === '/')
if (obj.apiURL.slice(-1) === '/')
throw new Error(
`Invalid URL ${obj.apiURL}: it should not have a trailing slash`,
)
Expand Down