We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 59a3022 commit 38b3decCopy full SHA for 38b3dec
pkg/index/index.go
@@ -93,8 +93,9 @@ func (i *Index) Remove(entry *Entry) error {
93
}
94
95
// EntryByName returns a Entry by passing its name.
96
-func (i *Index) EntryByName(name string) *Entry {
97
- return i.entryByName[name]
+func (i *Index) EntryByName(name string) (*Entry, bool) {
+ entry, ok := i.entryByName[name]
98
+ return entry, ok
99
100
101
// Normalize the index to the canonical form (i.e., entries sorted by name,
0 commit comments