Skip to content

Commit

Permalink
FIX: Redundant return statement
Browse files Browse the repository at this point in the history
  • Loading branch information
D3vd committed Oct 4, 2020
1 parent c7abc20 commit 8390088
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 6 deletions.
1 change: 0 additions & 1 deletion api/gimme/n_random_memes.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,5 101,4 @@ func GetNRandomMemes(c *gin.Context) {
}

c.JSON(http.StatusOK, res)
return
}
1 change: 0 additions & 1 deletion api/gimme/n_random_posts_from_sub.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,5 110,4 @@ func GetNPostsFromSub(c *gin.Context) {
}

c.JSON(http.StatusOK, res)
return
}
1 change: 0 additions & 1 deletion api/gimme/one_post_from_sub.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,5 76,4 @@ func GetOnePostFromSub(c *gin.Context) {
}

c.JSON(http.StatusOK, res)
return
}
1 change: 0 additions & 1 deletion api/gimme/one_random_meme.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,5 75,4 @@ func GetOneRandomMeme(c *gin.Context) {
}

c.JSON(http.StatusOK, res)
return
}
2 changes: 0 additions & 2 deletions api/gimme/subreddit_or_count.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 15,4 @@ func SubredditOrCount(c *gin.Context) {
} else {
GetOnePostFromSub(c)
}

return
}

0 comments on commit 8390088

Please sign in to comment.