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() {
|
func restClearErrors() {
|
||||||
guiErrorsMut.Lock()
|
guiErrorsMut.Lock()
|
||||||
guiErrors = nil
|
guiErrors = []guiError{}
|
||||||
guiErrorsMut.Unlock()
|
guiErrorsMut.Unlock()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user