Skip to content

Commit

Permalink
fix: don't print if no modules
Browse files Browse the repository at this point in the history
  • Loading branch information
alexisvisco committed Jul 27, 2022
1 parent 0027b3c commit 474de55
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions pkg/diff/modules/modules.go
Original file line number Diff line number Diff line change
Expand Up @@ -173,10 +173,8 @@ func getModuleFromFilePath(filePath string) (moduleName, modulePath string) {
}

func (m Modules) Human() {
var modules = map[string]bool{}

for _, mod := range m.Modules {
modules[mod.ModulePath] = true
if len(m.Modules) == 0 {
return
}

fmt.Println(strings.Join(lo.Map(m.Modules, func(t *Changes, i int) string {
Expand Down

0 comments on commit 474de55

Please sign in to comment.