Skip to content

Commit 1c7436e

Browse files
authored
chore: remove dead code (#34651)
1 parent 7aac96d commit 1c7436e

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

packages/playwright/src/plugins/gitCommitInfoPlugin.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,8 @@ export const gitCommitInfo = (options?: GitCommitInfoPluginOptions): TestRunnerP
3434
setup: async (config: FullConfig, configDir: string) => {
3535
const fromEnv = linksFromEnv();
3636
const fromCLI = await gitStatusFromCLI(options?.directory || configDir);
37-
const info = { ...fromEnv, ...fromCLI };
38-
if (info['revision.timestamp'] instanceof Date)
39-
info['revision.timestamp'] = info['revision.timestamp'].getTime();
40-
4137
config.metadata = config.metadata || {};
42-
config.metadata['git.commit.info'] = info;
38+
config.metadata['git.commit.info'] = { ...fromEnv, ...fromCLI };
4339
},
4440
};
4541
};

0 commit comments

Comments
 (0)