MCPcopy
hub / github.com/git-lfs/git-lfs / FirstEntryForKey

Function FirstEntryForKey

creds/creds.go:609–614  ·  view source on GitHub ↗

FirstEntryForKey extracts and returns the first entry for a given key, or returns the empty string if no value for that key is available.

(input Creds, key string)

Source from the content-addressed store, hash-verified

607// FirstEntryForKey extracts and returns the first entry for a given key, or
608// returns the empty string if no value for that key is available.
609func FirstEntryForKey(input Creds, key string) string {
610 if val, ok := input[key]; ok && len(val) > 0 {
611 return val[0]
612 }
613 return ""
614}

Callers 11

setRequestAuthWithCredsFunction · 0.92
IsMultistageMethod · 0.85
FillMethod · 0.85
FillMethod · 0.85
ApproveMethod · 0.85
execMethod · 0.85
credCacheKeyFunction · 0.85
FillMethod · 0.85
FillMethod · 0.85
ApproveMethod · 0.85
RejectMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected