summaryrefslogtreecommitdiffstats
path: root/models/review.go
diff options
context:
space:
mode:
authorOleg Kovalov <iamolegkovalov@gmail.com>2018-10-19 15:36:41 +0200
committerLunny Xiao <xiaolunwen@gmail.com>2018-10-19 21:36:41 +0800
commitfef0410b92cd26b2850174553386e8e93189e8bc (patch)
tree2624c8ce534852efed1630d2978fca020034711b /models/review.go
parent8db3bdc683032ecd2aaafef523e83bfc436bce5f (diff)
downloadgitea-fef0410b92cd26b2850174553386e8e93189e8bc.tar.gz
gitea-fef0410b92cd26b2850174553386e8e93189e8bc.zip
Make switch more clear (#5119)
Diffstat (limited to 'models/review.go')
-rw-r--r--models/review.go5
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