Skip to content

Commit

Permalink
Apply PR comments
Browse files Browse the repository at this point in the history
  • Loading branch information
muhamadazmy committed Oct 19, 2023
1 parent 334535e commit 9b9bbd8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/kernel/kernel.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ func (k Params) Get(key string) ([]string, bool) {
return v, ok
}

// GetOne gets a single value for given key. If key is provided
// multiple times in the cmdline, the last one is used. If key does
// not exist, or has no associated value, a false is returned
func (k Params) GetOne(key string) (string, bool) {
all, found := k.Get(key)
if !found {
Expand Down

0 comments on commit 9b9bbd8

Please sign in to comment.