Skip to content

Commit

Permalink
Fix redundant return statement
Browse files Browse the repository at this point in the history
  • Loading branch information
Wikidepia committed Aug 25, 2024
1 parent 08e1015 commit 76eef40
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 5 deletions.
1 change: 0 additions & 1 deletion handlers/embed.go
Original file line number Diff line number Diff line change
Expand Up @@ -138,5 +138,4 @@ func Embed(w http.ResponseWriter, r *http.Request) {
}

views.Embed(viewsData, w)
return
}
1 change: 0 additions & 1 deletion handlers/grid.go
Original file line number Diff line number Diff line change
Expand Up @@ -239,5 +239,4 @@ func Grid(w http.ResponseWriter, r *http.Request) {
defer f.Close()
w.Header().Set("Content-Type", "image/jpeg")
io.Copy(w, f)
return
}
1 change: 0 additions & 1 deletion handlers/images.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,4 @@ func Images(w http.ResponseWriter, r *http.Request) {
}
imageURL := item.Medias[max(1, mediaNum)-1].URL
http.Redirect(w, r, imageURL, http.StatusFound)
return
}
1 change: 0 additions & 1 deletion handlers/oembed.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,4 @@ func OEmbed(w http.ResponseWriter, r *http.Request) {
}

views.OEmbed(OEmbedData, w)
return
}
1 change: 0 additions & 1 deletion handlers/videos.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,4 @@ func Videos(w http.ResponseWriter, r *http.Request) {
return
}
http.Redirect(w, r, VideoProxyAddr+videoURL, http.StatusFound)
return
}

0 comments on commit 76eef40

Please sign in to comment.