Remove unneeded check
This commit is contained in:
parent
cda25cc55a
commit
7de9192f8a
4
main.go
4
main.go
|
@ -95,9 +95,7 @@ func save(raw string, lang string, title string) []string {
|
|||
check(err)
|
||||
if hash == sha {
|
||||
url := ADDRESS + "/p/" + id
|
||||
if title == "" {
|
||||
return []string{id, title, hash, url, paste, delkey}
|
||||
}
|
||||
return []string{id, title, hash, url, paste, delkey}
|
||||
}
|
||||
}
|
||||
id := generateName()
|
||||
|
|
Loading…
Reference in New Issue