RussellSpitzer commented on a change in pull request #2520:
URL: https://github.com/apache/iceberg/pull/2520#discussion_r620795244



##########
File path: core/src/main/java/org/apache/iceberg/GenericManifestFile.java
##########
@@ -245,6 +251,11 @@ public Long deletedRowsCount() {
     return partitions == null ? null : Arrays.asList(partitions);
   }
 
+  @Override
+  public ByteBuffer keyMetadata() {
+    return keyMetadata != null ? ByteBuffer.wrap(keyMetadata) : null;

Review comment:
       I'd rather follow the pattern above 
   positive assertion ? positive result : otherwise
   ```
   keyMetadata == null ? null : ByteBuffer.wrap(keyMetadata)
   ```
   Just a personal thing but I always have a hard time with negated boolean 
checks




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to