Skip to content

Commit

Permalink
gofmt -w
Browse files Browse the repository at this point in the history
  • Loading branch information
technicalpickles committed Jul 26, 2023
1 parent 0e0294c commit 0732e67
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions internal/lefthook/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -162,9 +162,9 @@ func printSummary(
logSettings log.SkipSettings,
) {
if len(results) == 0 {
if !logSettings.SkipEmptySummary() {
log.Info(log.Cyan("\nSUMMARY: (SKIP EMPTY)"))
}
if !logSettings.SkipEmptySummary() {
log.Info(log.Cyan("\nSUMMARY: (SKIP EMPTY)"))
}
return
}

Expand Down
8 changes: 4 additions & 4 deletions internal/log/skip_settings.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const (
skipExecution
skipExecutionOutput
skipExecutionInfo
skipEmptySummary
skipEmptySummary
)

type SkipSettings int16
Expand All @@ -32,8 +32,8 @@ func (s *SkipSettings) ApplySetting(setting string) {
*s |= skipExecutionOutput
case "execution_info":
*s |= skipExecutionInfo
case "empty_summary":
*s |= skipEmptySummary
case "empty_summary":
*s |= skipEmptySummary
}
}

Expand Down Expand Up @@ -70,7 +70,7 @@ func (s SkipSettings) SkipSkips() bool {
}

func (s SkipSettings) SkipEmptySummary() bool {
return s.doSkip(skipEmptySummary)
return s.doSkip(skipEmptySummary)
}

func (s SkipSettings) doSkip(option int16) bool {
Expand Down

0 comments on commit 0732e67

Please sign in to comment.