Skip to content

Commit beb2ff2

Browse files
committed
Using semver for versioning (part 2)
1 parent 16a67ec commit beb2ff2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

print_used_libraries_if_verbose.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,11 @@ func (s *PrintUsedLibrariesIfVerbose) Run(ctx *types.Context) error {
4747
}
4848

4949
for _, library := range ctx.ImportedLibraries {
50-
legacy := constants.EMPTY_STRING
50+
legacy := ""
5151
if library.IsLegacy {
5252
legacy = constants.MSG_LIB_LEGACY
5353
}
54-
if library.Version == constants.EMPTY_STRING {
54+
if library.Version.String() == "" {
5555
logger.Println(constants.LOG_LEVEL_INFO, constants.MSG_USING_LIBRARY, library.Name, library.InstallDir, legacy)
5656
} else {
5757
logger.Println(constants.LOG_LEVEL_INFO, constants.MSG_USING_LIBRARY_AT_VERSION, library.Name, library.Version, library.InstallDir, legacy)

0 commit comments

Comments
 (0)