]> source.dussan.org Git - gitea.git/commitdiff
Make switch more clear (#5119)
authorOleg Kovalov <iamolegkovalov@gmail.com>
Fri, 19 Oct 2018 13:36:41 +0000 (15:36 +0200)
committerLunny Xiao <xiaolunwen@gmail.com>
Fri, 19 Oct 2018 13:36:41 +0000 (21:36 +0800)
models/review.go

index dd8743586d43cd05c7c02e0eb4f0dfb0a4e2893a..f58d3f90cb07b46613230c7e5cc0274b362070d3 100644 (file)
@@ -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