Skip to content

Commit 2ca2d9d

Browse files
authored
add missing return after http.Error (#131)
Signed-off-by: Paul Scott <[email protected]>
1 parent ef8d461 commit 2ca2d9d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

golink.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -827,6 +827,7 @@ func serveSave(w http.ResponseWriter, r *http.Request) {
827827
link, err := db.Load(short)
828828
if err != nil && !errors.Is(err, fs.ErrNotExist) {
829829
http.Error(w, err.Error(), http.StatusInternalServerError)
830+
return
830831
}
831832

832833
if !canEditLink(r.Context(), link, cu) {

0 commit comments

Comments
 (0)