Return an empty error list instead of null after clear

This commit is contained in:
Jakob Borg committed 2014-05-17 13:55:10 +02:00
1 parent 1442d6f4c2
commit 7d672fd989
1 file changed
+1 -1
+1 -1
View File
@@ -229,7 +229,7 @@ func restPostError(req *http.Request) {
func restClearErrors() {
guiErrorsMut.Lock()
guiErrors = nil
guiErrors = []guiError{}
guiErrorsMut.Unlock()
}