Skip to content

Commit

Permalink
Remove unnecessary conditions
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Edgar <[email protected]>
  • Loading branch information
MikeEdgar committed Jan 16, 2025
1 parent b7821d7 commit 0501dbf
Showing 1 changed file with 1 addition and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -284,15 +284,8 @@ public FieldInfo getField() {
}

private void setField(FieldInfo field) {
if (this.field != null) {
targets.remove(this.field);
}

this.field = field;

if (field != null) {
targets.add(field);
}
targets.add(field);
}

/**
Expand Down

0 comments on commit 0501dbf

Please sign in to comment.