From 8d30f8e9447db24a2c42c285a8cdb48d9b4f3bb8 Mon Sep 17 00:00:00 2001 From: Howl Date: Mon, 28 Nov 2016 19:22:15 +0100 Subject: [PATCH] smh --- hanayo.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/hanayo.go b/hanayo.go index 487c49e..14c30f2 100644 --- a/hanayo.go +++ b/hanayo.go @@ -59,6 +59,9 @@ func opClearExpiredProfileBackgrounds() { // remove all elements still left for _, e := range elements { + if e == "" { + continue + } err := os.Remove(c.HanayoFolder + "/static/profbackgrounds/" + e) if err != nil { color.Red("> ClearExpiredProfileBackgrounds: failed to delete a background: %v", err) -- GitLab