Remove consistency check in LocalFile for artifact and artifact metadata both being null/not null.
The discrepancy can happen at least with --check_up_to_date. Getting fix in quickly, will add test in follow-up.
@@ -99,10 +99,6 @@ public interface BuildEvent extends ChainableEvent, ExtendedEventHandler.Postabl
this.compression = Preconditions.checkNotNull(compression);
this.artifact = artifact;
this.artifactMetadata = artifactMetadata;
- Preconditions.checkState(
- (artifact == null) == (artifactMetadata == null),
- "Artifact and metadata must both be null or both non-null: %s",
- this);
}
@Override
