Remove unneeded check
This commit is contained in:
parent
79f53f9adc
commit
6420d7dfed
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