We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2095e1a commit 001a2b4Copy full SHA for 001a2b4
frontend/src/services/http.js
@@ -3,10 +3,10 @@ import { AuthService } from './auth';
3
4
const trim = (string) => {
5
if (string.startsWith('/')) {
6
- return string.slice(1);
+ string = string.slice(1);
7
}
8
if (string.endsWith('/')) {
9
- return string.slice(0, -1);
+ string = string.slice(0, -1);
10
11
return string;
12
};
0 commit comments