Return an empty error list instead of null after clear

This commit is contained in:
Jakob Borg 2014-05-17 13:54:11 +02:00
parent 1442d6f4c2
commit 7d672fd989

View File

@ -229,7 +229,7 @@ func restPostError(req *http.Request) {
func restClearErrors() {
guiErrorsMut.Lock()
guiErrors = nil
guiErrors = []guiError{}
guiErrorsMut.Unlock()
}