Fixup missing return value
This commit is contained in:
parent
dc1ad54fa3
commit
49b352b19a
2
main.go
2
main.go
|
@ -222,7 +222,7 @@ func getPaste(paste string, lang string) (string, string) {
|
||||||
check(err)
|
check(err)
|
||||||
|
|
||||||
if err == sql.ErrNoRows {
|
if err == sql.ErrNoRows {
|
||||||
return "Error invalid paste"
|
return "Error invalid paste", ""
|
||||||
} else {
|
} else {
|
||||||
if lang == "" {
|
if lang == "" {
|
||||||
return html.UnescapeString(s), title
|
return html.UnescapeString(s), title
|
||||||
|
|
Loading…
Reference in New Issue