Code cleanup

This commit is contained in:
Dave Bartolomeo
2022-08-01 12:28:35 -04:00
parent 8f5611b074
commit 6409e09063

View File

@@ -55,8 +55,7 @@ describe('SourceMap', function() {
const tempDir = path.join(tmpDir.name, 'log-summary');
await fs.ensureDir(tempDir);
const result: Record<string, string> = {};
for (const key in files) {
const srcPath = files[key];
for (const [key, srcPath] of Object.entries(files)) {
const destPath = path.join(tempDir, path.basename(srcPath));
await fs.copy(srcPath, destPath);
result[key] = destPath;