Skip to content

Commit

Permalink
return
Browse files Browse the repository at this point in the history
  • Loading branch information
adelowo committed Jan 28, 2019
1 parent e5ef362 commit 569d9f2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions routers/api/v1/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -374,6 +374,7 @@ func mustEnableUserHeatmap(ctx *context.Context) {
func mustNotBeArchived(ctx *context.Context) {
if ctx.Repo.Repository.IsArchived {
ctx.Status(404)
return
}
}

Expand Down

2 comments on commit 569d9f2

@zeripath
Copy link
Contributor

@zeripath zeripath commented on 569d9f2 Jan 28, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's not necessary to put a return here, the function was going to return in any case


But I don't think you have to change it

@lunny
Copy link
Member

@lunny lunny commented on 569d9f2 Jan 31, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think so.

Please sign in to comment.