Removed the max/min family of functions (#28679)
They are in-built in Go now ```release-note NONE ```
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
4440ace6a9
Коммит
3db139f746
@@ -102,13 +102,6 @@ func (pluginAPI *mockPluginAPI) KVList(page, count int) ([]string, *model.AppErr
|
||||
return keys[start:end], nil
|
||||
}
|
||||
|
||||
func min(a, b int) int {
|
||||
if a < b {
|
||||
return a
|
||||
}
|
||||
return b
|
||||
}
|
||||
|
||||
func (pluginAPI *mockPluginAPI) KVSetWithOptions(key string, value []byte, options model.PluginKVSetOptions) (bool, *model.AppError) {
|
||||
pluginAPI.lock.Lock()
|
||||
defer pluginAPI.lock.Unlock()
|
||||
|
||||
Ссылка в новой задаче
Block a user