Skip to content

Commit 99b4b7a

Browse files
committed
Removed unnecessary null check
1 parent f24f718 commit 99b4b7a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/contextmapper/contextmap/generator/ContextMapGenerator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ public void generateContextMapGraphic(ContextMap contextMap, Format format, Stri
160160
}
161161

162162
private Label createLabel(String label) {
163-
if (label != null && !"".equals(label))
163+
if (!"".equals(label))
164164
return Label.of(label);
165165

166166
// create spacing for edges without label

0 commit comments

Comments
 (0)