Remove unneeded check
This commit is contained in:
parent
79f53f9adc
commit
6420d7dfed
2
main.go
2
main.go
|
@ -95,11 +95,9 @@ 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()
|
||||||
var url string
|
var url string
|
||||||
if lang == "" {
|
if lang == "" {
|
||||||
|
|
Loading…
Reference in New Issue