diff --git a/hanayo.go b/hanayo.go index 487c49eb148646c529df0b835899e36e38663200..14c30f2dcb98e125ea43cdf948e62bdc88e1463b 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)