Archived
Return an empty error list instead of null after clear
This commit is contained in:
1 parent
1442d6f4c2
commit
7d672fd989
1 file changed
+1
-1
@@ -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