Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Gabriel Nützi <[email protected]>
  • Loading branch information
victorciresica and gabyx authored Oct 3, 2024
1 parent 5da6231 commit fe148cb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion githooks/apps/runner/settings.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ type HookSettings struct {
HookName string // Name of the hook.
HookDir string // Directory of the hook.
HookNamespace string // Namespace of this repositorie's Githooks.
ChecksumsDir string // Name of the directory with the trust checksums
ChecksumsDir string // Name of the directory with the trust checksums.

IsRepoTrusted bool // If the repository is a trusted repository.
SkipNonExistingSharedHooks bool // If Githooks should skip non-existing shared hooks.
Expand Down
2 changes: 1 addition & 1 deletion githooks/hooks/trusted.go
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ func GetChecksumDirectoryGitDir(gitDir string) string {

exists, _ := cm.IsPathExisting(path.Join(gitDir, conf))
switch {
case !strs.IsEmpty(conf) && exists:
case !strs.IsEmpty(conf):
return path.Join(gitDir, conf)
default:
return path.Join(gitDir, ".githooks.checksums")
Expand Down

0 comments on commit fe148cb

Please sign in to comment.