From 7d672fd9897e0aa9dea4d51a1740427313b0a7ad Mon Sep 17 00:00:00 2001 From: Jakob Borg Date: Sat, 17 May 2014 13:54:11 +0200 Subject: [PATCH] Return an empty error list instead of null after clear --- cmd/syncthing/gui.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/syncthing/gui.go b/cmd/syncthing/gui.go index 5a98b251..90160f1e 100644 --- a/cmd/syncthing/gui.go +++ b/cmd/syncthing/gui.go @@ -229,7 +229,7 @@ func restPostError(req *http.Request) { func restClearErrors() { guiErrorsMut.Lock() - guiErrors = nil + guiErrors = []guiError{} guiErrorsMut.Unlock() }