Return an empty error list instead of null after clear
This commit is contained in:
@@ -229,7 +229,7 @@ func restPostError(req *http.Request) {
|
||||
|
||||
func restClearErrors() {
|
||||
guiErrorsMut.Lock()
|
||||
guiErrors = nil
|
||||
guiErrors = []guiError{}
|
||||
guiErrorsMut.Unlock()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user