Skip to content

Commit 48b5188

Browse files
authored
Remove redundant if from UnmappedTargetPropertiesInspection (#115)
1 parent 7fe1c86 commit 48b5188

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/main/java/org/mapstruct/intellij/inspection/UnmappedTargetPropertiesInspection.java

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -174,11 +174,7 @@ private static PsiType getTargetType(PsiMethod method) {
174174
|| !( isMapper( containingClass ) || isMapperConfig( containingClass ) ) ) {
175175
return null;
176176
}
177-
PsiType targetType = TargetUtils.getRelevantType( method );
178-
if ( targetType == null ) {
179-
return null;
180-
}
181-
return targetType;
177+
return TargetUtils.getRelevantType( method );
182178
}
183179
}
184180

0 commit comments

Comments
 (0)