Update dependencies for 5.6 (#24)
This commit is contained in:
parent
76ba0b57a7
commit
415e8b5f72
41 changed files with 3499 additions and 1746 deletions
23
build/manifest/vendor/github.com/mattermost/mattermost-server/model/utils.go
generated
vendored
23
build/manifest/vendor/github.com/mattermost/mattermost-server/model/utils.go
generated
vendored
|
@ -564,3 +564,26 @@ func IsDomainName(s string) bool {
|
|||
|
||||
return ok
|
||||
}
|
||||
|
||||
func RemoveDuplicateStrings(in []string) []string {
|
||||
out := []string{}
|
||||
seen := make(map[string]bool, len(in))
|
||||
|
||||
for _, item := range in {
|
||||
if !seen[item] {
|
||||
out = append(out, item)
|
||||
|
||||
seen[item] = true
|
||||
}
|
||||
}
|
||||
|
||||
return out
|
||||
}
|
||||
|
||||
func GetPreferredTimezone(timezone StringMap) string {
|
||||
if timezone["useAutomaticTimezone"] == "true" {
|
||||
return timezone["automaticTimezone"]
|
||||
}
|
||||
|
||||
return timezone["manualTimezone"]
|
||||
}
|
||||
|
|
Reference in a new issue