Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 60709ab

Browse files
committedJul 31, 2019
always show available versions on list
1 parent 3f3df93 commit 60709ab

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed
 

‎commands/lib/list.go

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -64,12 +64,9 @@ func listLibraries(lm *librariesmanager.LibrariesManager, updatable bool, all bo
6464
continue
6565
}
6666
}
67-
var available *librariesindex.Release
68-
if updatable {
69-
available = lm.Index.FindLibraryUpdate(lib)
70-
if available == nil {
71-
continue
72-
}
67+
available := lm.Index.FindLibraryUpdate(lib)
68+
if updatable && available == nil {
69+
continue
7370
}
7471
res = append(res, &installedLib{
7572
Library: lib,

0 commit comments

Comments
 (0)
Please sign in to comment.