chore: remove all .substring() usage (#6352)

Signed-off-by: Tobias Speicher <rootcommander@gmail.com>
This commit is contained in:
CommanderRoot
2022-03-30 13:25:12 +02:00
committed by GitHub
parent 59b9348093
commit ad82a0f0bc
8 changed files with 12 additions and 21 deletions

View File

@ -61,7 +61,7 @@ let serverProcess;
async function setupProxy(options) {
const postfix = Math.random()
.toString(32)
.substring(2);
.slice(2);
const testRepoName = `proxy-test-repo-${Date.now()}-${postfix}`;
const tempDir = path.join('.temp', testRepoName);