diff options
author | Oleg Kovalov <iamolegkovalov@gmail.com> | 2018-10-19 15:36:41 +0200 |
---|---|---|
committer | Lunny Xiao <xiaolunwen@gmail.com> | 2018-10-19 21:36:41 +0800 |
commit | fef0410b92cd26b2850174553386e8e93189e8bc (patch) | |
tree | 2624c8ce534852efed1630d2978fca020034711b /models/review.go | |
parent | 8db3bdc683032ecd2aaafef523e83bfc436bce5f (diff) | |
download | gitea-fef0410b92cd26b2850174553386e8e93189e8bc.tar.gz gitea-fef0410b92cd26b2850174553386e8e93189e8bc.zip |
Make switch more clear (#5119)
Diffstat (limited to 'models/review.go')
-rw-r--r-- | models/review.go | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/models/review.go b/models/review.go index dd8743586d..f58d3f90cb 100644 --- a/models/review.go +++ b/models/review.go @@ -38,12 +38,11 @@ func (rt ReviewType) Icon() string { return "eye" case ReviewTypeReject: return "x" + case ReviewTypeComment, ReviewTypeUnknown: + return "comment" default: - case ReviewTypeComment: - case ReviewTypeUnknown: return "comment" } - return "comment" } // Review represents collection of code comments giving feedback for a PR |