Skip to content

Commit ac6ed21

Browse files
committed
Remove redundant else statement (address code review feedback)
1 parent b3153e2 commit ac6ed21

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/com/goide/highlighting/GoHighlightExitPointsHandlerFactory.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,9 +99,7 @@ private static boolean shouldCreateMyHandler(PsiElement element) {
9999
LeafPsiElement leaf = (LeafPsiElement)element;
100100
return leaf.getElementType() == GoTypes.RETURN || leaf.getElementType() == GoTypes.FUNC || isPanicCall(leaf);
101101
}
102-
else {
103-
return false;
104-
}
102+
return false;
105103
}
106104

107105
private static boolean isPanicCall(@NotNull PsiElement e) {

0 commit comments

Comments
 (0)