mirror of
https://github.com/google/nomulus
synced 2026-01-11 00:10:36 +00:00
Use compound return statements for greater readability
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=173451653
This commit is contained in:
@@ -140,10 +140,7 @@ public class SignedMarkRevocationList extends ImmutableObject {
|
||||
/** Returns {@code true} if the SMD ID has been revoked at the given point in time. */
|
||||
public boolean isSmdRevoked(String smdId, DateTime now) {
|
||||
DateTime revoked = revokes.get(checkNotNull(smdId, "smdId"));
|
||||
if (revoked == null) {
|
||||
return false;
|
||||
}
|
||||
return isBeforeOrAt(revoked, now);
|
||||
return revoked != null && isBeforeOrAt(revoked, now);
|
||||
}
|
||||
|
||||
/** Returns the creation timestamp specified at the top of the SMDRL CSV file. */
|
||||
|
||||
Reference in New Issue
Block a user