Skip to content

Commit

Permalink
Linting.
Browse files Browse the repository at this point in the history
  • Loading branch information
mcdee committed Nov 12, 2023
1 parent a320ca0 commit f6b3434
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
1 change: 0 additions & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -163,4 +163,3 @@ linters:
- varnamelen
- wrapcheck
- wsl
- zerologlint
10 changes: 4 additions & 6 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -421,13 +421,11 @@ func logModules() {
if ok {
log.Trace().Str("path", buildInfo.Path).Msg("Main package")
for _, dep := range buildInfo.Deps {
log := log.Trace()
if dep.Replace == nil {
log = log.Str("path", dep.Path).Str("version", dep.Version)
} else {
log = log.Str("path", dep.Replace.Path).Str("version", dep.Replace.Version)
path := dep.Path
if dep.Replace != nil {
path = dep.Replace.Path
}
log.Msg("Dependency")
log.Trace().Str("path", path).Str("version", dep.Version).Msg("Dependency")
}
}
}
Expand Down

0 comments on commit f6b3434

Please sign in to comment.