Skip to content

Commit 8347521

Browse files
committed
Drop unnecessary condition
1 parent 9614c4a commit 8347521

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/fr/adrienbrault/idea/symfony2plugin/codeInspection/service/ServiceDeprecatedClassesInspection.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ public void visitElement(PsiElement element) {
140140
} else if(element.getNode().getElementType() == YAMLTokenTypes.TEXT) {
141141
// @service
142142
String text = element.getText();
143-
if(text != null && StringUtils.isNotBlank(text) && text.startsWith("@")) {
143+
if(StringUtils.isNotBlank(text) && text.startsWith("@")) {
144144
this.problemRegistrar.attachDeprecatedProblem(element, text.substring(1), holder);
145145
this.problemRegistrar.attachServiceDeprecatedProblem(element, text.substring(1), holder);
146146
}

0 commit comments

Comments
 (0)