Idiomatic error handling for app/c*.go (#9423)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
8898d7aab9
Коммит
9d73c79def
@@ -185,7 +185,9 @@ func (a *App) ensureAsymmetricSigningKey() error {
|
||||
result := <-a.Srv.Store.System().GetByName(model.SYSTEM_ASYMMETRIC_SIGNING_KEY)
|
||||
if result.Err != nil {
|
||||
return result.Err
|
||||
} else if err := json.Unmarshal([]byte(result.Data.(*model.System).Value), &key); err != nil {
|
||||
}
|
||||
|
||||
if err := json.Unmarshal([]byte(result.Data.(*model.System).Value), &key); err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
|
||||
Ссылка в новой задаче
Block a user