chore[orm]: simplify the code

This commit is contained in:
godotg committed 2024-06-17 10:53:07 +08:00
1 parent 3978e6ef12
commit b15768f805
2 files changed
+2 -2

No files matched your search

@@ -38,7 +38,7 @@ public class IntMapCodec<V> implements Codec<Map<Integer, V>> {
if (value == null) {
writer.writeNull();
} else {
valueCodec.encode(writer, entry.getValue(), encoderContext);
valueCodec.encode(writer, value, encoderContext);
}
}
writer.writeEndDocument();
@@ -38,7 +38,7 @@ public class LongMapCodec<V> implements Codec<Map<Long, V>> {
if (value == null) {
writer.writeNull();
} else {
valueCodec.encode(writer, entry.getValue(), encoderContext);
valueCodec.encode(writer, value, encoderContext);
}
}
writer.writeEndDocument();