judge: fix baseURL handle

This commit is contained in:
undefined committed 2022-09-06 13:02:46 +08:00
1 parent 4e0c9bb00a
commit 7c0f80e5a0
1 file changed
+1 -1
+1 -1
View File
@@ -3,7 +3,7 @@ import { SandboxRequest, SandboxResult, SandboxVersion } from './interface';
export class SandboxClient {
constructor(public baseURL: string) {
if (baseURL.endsWith('/')) baseURL = baseURL.substring(0, baseURL.length - 1);
if (baseURL.endsWith('/')) this.baseURL = baseURL.substring(0, baseURL.length - 1);
}
public run(req: SandboxRequest): Promise<SandboxResult[]> {