Commit 01dfbc9c authored by Ronny Bangsund's avatar Ronny Bangsund

Deleting scraps actually works fully.

parent 4c48da91
......@@ -100,7 +100,7 @@ func loadScrap(hash string) Scrap {
func (s *Scrap) delete() {
os.Remove("./data/" + s.Hash)
os.Remove("./data/" + s.Language + "/" + s.Hash)
delete(scraps s)
delete(scraps, s.Hash)
}
// Open all index files and load the associated scrap,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment