Fixup missing return value
This commit is contained in:
parent
40adfe9136
commit
04675d9ba8
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