Skip to content

Commit

Permalink
fix linter error
Browse files Browse the repository at this point in the history
  • Loading branch information
DmitriyLewen committed Jun 3, 2024
1 parent eb67467 commit 0bbe7c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/dependency/parser/dart/pub/parse.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ func (p Parser) Parse(r xio.ReadSeekerAt) ([]ftypes.Package, []ftypes.Dependency
if constraint, ok := l.Sdks[string(dep.Description)]; ok {
v, err := firstVersionOfConstrain(constraint)
if err != nil {
p.logger.Warn("unable to get sdk version from constraint: %w", err)
p.logger.Warn("unable to get sdk version from constraint: %w", log.Err(err))
} else if v != "" {
p.logger.Info("The first version of the constraint from the sdk source was used.", log.String("dep", name), log.String("constraint", constraint))
version = v
Expand Down

0 comments on commit 0bbe7c5

Please sign in to comment.