Skip to content

Commit

Permalink
fix: gradle lint
Browse files Browse the repository at this point in the history
  • Loading branch information
iseki0 committed Aug 19, 2024
1 parent fdae0a9 commit d088914
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions module/gradle/gradle.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@ func (Inspector) InspectProject(ctx context.Context) error {
if useGradle {
logger.Info(gradleEnv.Version.String())
rs, e = evalGradleDependencies(ctx, dir, gradleEnv)
if e != nil {
logger.Warnf("gradle failed: %s", e)
}
}
if len(rs) == 0 && !env.ScannerScan {
// if no module find, use backup solution
Expand Down Expand Up @@ -277,8 +280,7 @@ func walkGradleScriptOutput(ctx context.Context, dir string, handler func(dir st
return nil
}
logger.Debugf("found dependency-tree-mp.yaml: %s", path)
e = handler(path)
return nil
return handler(path)
})
if e != nil {
e = fmt.Errorf("walkGradleScriptOutput: %w", e)
Expand Down

0 comments on commit d088914

Please sign in to comment.