update recieve link cb

This commit is contained in:
sentriz
2019-04-18 00:13:16 +01:00
parent 7dbcb9ec5a
commit 6b82310ac1
4 changed files with 43 additions and 25 deletions

View File

@@ -25,3 +25,18 @@ func ValidateAPIKey(apiKey, secret string) error {
}
return nil
}
func FirstExisting(or string, strings ...string) string {
current := ""
for _, s := range strings {
if s == "" {
continue
}
current = s
break
}
if current == "" {
return or
}
return current
}