Skip to content

Commit d03019c

Browse files
committed
Fix hooks installer unparam lint
1 parent 5e1be24 commit d03019c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

internal/hooks/installer.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ func InstallForRole(provider, settingsDir, workDir, role, hooksDir, hooksFile st
5858
// Stale file detected — fall through to overwrite with current template
5959
}
6060

61-
return writeTemplate(provider, role, hooksDir, hooksFile, targetPath)
61+
return writeTemplate(provider, role, hooksFile, targetPath)
6262
}
6363

6464
// needsUpgrade returns true if an existing hooks file contains stale patterns
@@ -157,7 +157,7 @@ func resolveAndSubstitute(provider, hooksFile, role string) ([]byte, error) {
157157
}
158158

159159
// writeTemplate resolves a template, substitutes placeholders, and writes it to targetPath.
160-
func writeTemplate(provider, role, hooksDir, hooksFile, targetPath string) error {
160+
func writeTemplate(provider, role, hooksFile, targetPath string) error {
161161
content, err := resolveAndSubstitute(provider, hooksFile, role)
162162
if err != nil {
163163
return err

0 commit comments

Comments
 (0)