mirror of
https://github.com/octoleo/syncthing.git
synced 2024-12-23 03:18:59 +00:00
Return an empty error list instead of null after clear
This commit is contained in:
parent
1442d6f4c2
commit
7d672fd989
@ -229,7 +229,7 @@ func restPostError(req *http.Request) {
|
||||
|
||||
func restClearErrors() {
|
||||
guiErrorsMut.Lock()
|
||||
guiErrors = nil
|
||||
guiErrors = []guiError{}
|
||||
guiErrorsMut.Unlock()
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user