Remove unneeded check

This commit is contained in:
Eliot Whalan 2016-06-24 17:13:56 +10:00
parent cda25cc55a
commit 7de9192f8a
No known key found for this signature in database
GPG Key ID: C0A42175139840D6
1 changed files with 1 additions and 3 deletions

View File

@ -95,9 +95,7 @@ func save(raw string, lang string, title string) []string {
check(err) check(err)
if hash == sha { if hash == sha {
url := ADDRESS + "/p/" + id url := ADDRESS + "/p/" + id
if title == "" { return []string{id, title, hash, url, paste, delkey}
return []string{id, title, hash, url, paste, delkey}
}
} }
} }
id := generateName() id := generateName()