style: apply lint fixes

This commit is contained in:
Peter Steinberger
2026-01-08 04:44:11 +00:00
parent c2a6e04e06
commit dc3e3f27d4
23 changed files with 94 additions and 95 deletions

View File

@@ -37,10 +37,9 @@ const resolveGitHead = (startDir: string) => {
let cachedCommit: string | null | undefined;
export const resolveCommitHash = (options: {
cwd?: string;
env?: NodeJS.ProcessEnv;
} = {}) => {
export const resolveCommitHash = (
options: { cwd?: string; env?: NodeJS.ProcessEnv } = {},
) => {
if (cachedCommit !== undefined) return cachedCommit;
const env = options.env ?? process.env;
const envCommit = env.GIT_COMMIT?.trim() || env.GIT_SHA?.trim();