Skip to content

Commit

Permalink
fix: fix nolint
Browse files Browse the repository at this point in the history
  • Loading branch information
guseggert committed Mar 27, 2023
1 parent 80bd5cf commit 2ff161f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cmd/migrate/internal/migrator.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ func (m *Migrator) updateFileImports(filePath string) error {
if err != nil {
return err
}
defer f.Close()
err = format.Node(f, fset, astFile)
if err != nil {
f.Close()
Expand Down Expand Up @@ -120,7 +121,7 @@ func (m *Migrator) FindMigratedDependencies() ([]string, error) {
}
} else {
if !strings.Contains(stderr, "not a known dependency") {
return nil, fmt.Errorf("non-zero exit code %d finding if current module depends on %q, stderr:\n%s\n", exitCode, mod, stderr) // nolint
return nil, fmt.Errorf("non-zero exit code %d finding if current module depends on %q, stderr:\n%s", exitCode, mod, stderr)
}
}
}
Expand All @@ -133,7 +134,7 @@ func (m *Migrator) findSourceFiles() ([]string, error) {
return nil, fmt.Errorf("finding source files: %w", err)
}
if exitCode != 0 {
return nil, fmt.Errorf("non-zero exit code %d finding source files, stderr:\n%s\n", exitCode, stderr) // nolint
return nil, fmt.Errorf("non-zero exit code %d finding source files, stderr:\n%s", exitCode, stderr)
}

var files []string
Expand Down

0 comments on commit 2ff161f

Please sign in to comment.