Skip to content

Commit

Permalink
Typo
Browse files Browse the repository at this point in the history
  • Loading branch information
walkowif committed Dec 13, 2023
1 parent 5ff97de commit 02e64c9
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions cmd/construct.go
Original file line number Diff line number Diff line change
Expand Up @@ -176,19 +176,15 @@ func ProcessMissingPackage(indentation string, packageName string, versionOperat
// some other package already requires this missing dependency in a lower version
// and the currently processed package requires it in a higher version,
// so the current requirement is more important.
nonFatalMissingPackageVersions[packageName] = DependencyVersion{
versionOperator, versionValue,
}
nonFatalMissingPackageVersions[packageName] = DependencyVersion{versionOperator, versionValue}
log.Trace("Adding package ", packageName, " ", versionOperator, " ", versionValue, " to missing packages list.")
}
} else {
log.Error(indentation + message)
val, ok := fatalMissingPackageVersions[packageName]
if !ok || (ok && !CheckIfVersionSufficient(val.VersionValue, versionOperator, versionValue)) {
// See a comment above for explanation of this contidion.
fatalMissingPackageVersions[packageName] = DependencyVersion{
versionOperator, versionValue,
}
// See a comment above for explanation of this condition.
fatalMissingPackageVersions[packageName] = DependencyVersion{versionOperator, versionValue}
log.Trace("Adding package ", packageName, " ", versionOperator, " ", versionValue, " to missing packages list.")
}
}
Expand Down

0 comments on commit 02e64c9

Please sign in to comment.