Skip to content

Commit

Permalink
Remove redundant else statement (address code review feedback)
Browse files Browse the repository at this point in the history
  • Loading branch information
ilinum committed Nov 22, 2015
1 parent b3153e2 commit ac6ed21
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -99,9 +99,7 @@ private static boolean shouldCreateMyHandler(PsiElement element) {
LeafPsiElement leaf = (LeafPsiElement)element; LeafPsiElement leaf = (LeafPsiElement)element;
return leaf.getElementType() == GoTypes.RETURN || leaf.getElementType() == GoTypes.FUNC || isPanicCall(leaf); return leaf.getElementType() == GoTypes.RETURN || leaf.getElementType() == GoTypes.FUNC || isPanicCall(leaf);
} }
else { return false;
return false;
}
} }


private static boolean isPanicCall(@NotNull PsiElement e) { private static boolean isPanicCall(@NotNull PsiElement e) {
Expand Down

0 comments on commit ac6ed21

Please sign in to comment.