Permalink
Browse files

Remove redundant else statement (address code review feedback)

  • Loading branch information...
ilinum committed Nov 22, 2015
1 parent b3153e2 commit ac6ed215cd36ea7f95f674fa96d6ddaa1e3eaeeb
Showing with 1 addition and 3 deletions.
  1. +1 −3 src/com/goide/highlighting/GoHighlightExitPointsHandlerFactory.java
@@ -99,9 +99,7 @@ private static boolean shouldCreateMyHandler(PsiElement element) {
LeafPsiElement leaf = (LeafPsiElement)element;
return leaf.getElementType() == GoTypes.RETURN || leaf.getElementType() == GoTypes.FUNC || isPanicCall(leaf);
}
else {
return false;
}
return false;
}
private static boolean isPanicCall(@NotNull PsiElement e) {

0 comments on commit ac6ed21

Please sign in to comment.