Skip to content

Commit

Permalink
refactor: Cleaned up the code a bit ("Hurz-removal")
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisdutz committed Feb 2, 2024
1 parent c4115fd commit f46c081
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -657,10 +657,8 @@ public String getDataIoPropertyValue(PropertyField propertyField) {
}
case "nanosecondsSinceEpoch":
return "BigInteger.valueOf(_value.getDateTime().toEpochSecond(OffsetDateTime.now().getOffset())).multiply(BigInteger.valueOf(1000000000)).add(BigInteger.valueOf(_value.getDateTime().getNano()))";
}
if("value".equals(propertyField.getName())) {
} else {
return "hurz-" + propertyField.getName();
default:
throw new UnsupportedOperationException(String.format("Unsupported field name %s.", propertyField.getName()));
}
}
throw new UnsupportedOperationException("Non Simple types not yet supported.");
Expand Down

0 comments on commit f46c081

Please sign in to comment.