MCPcopy Index your code
hub / github.com/bytebase/bytebase / firstNonEmpty

Function firstNonEmpty

action/command/vcs_user.go:242–249  ·  view source on GitHub ↗
(values ...string)

Source from the content-addressed store, hash-verified

240}
241
242func firstNonEmpty(values ...string) string {
243 for _, value := range values {
244 if value != "" {
245 return value
246 }
247 }
248 return ""
249}
250
251func isGitLabBotUser(userName string) bool {
252 lowerUserName := strings.ToLower(userName)

Callers 1

getBitbucketRepositoryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected