Removed duplicate metadata file checks.

This commit is contained in:
CalDescent 2022-02-03 19:53:29 +00:00
parent 0b7a7ed0f1
commit 1064b1a08b

View File

@ -460,9 +460,6 @@ public class ArbitraryDataFile {
if (this.metadataFile == null) { if (this.metadataFile == null) {
this.metadataFile = ArbitraryDataFile.fromHash(this.metadataHash, this.signature); this.metadataFile = ArbitraryDataFile.fromHash(this.metadataHash, this.signature);
if (!metadataFile.exists()) {
return false;
}
} }
// If the metadata file doesn't exist, we can't check if we have the chunks // If the metadata file doesn't exist, we can't check if we have the chunks
@ -501,9 +498,6 @@ public class ArbitraryDataFile {
if (this.metadataFile == null) { if (this.metadataFile == null) {
this.metadataFile = ArbitraryDataFile.fromHash(this.metadataHash, this.signature); this.metadataFile = ArbitraryDataFile.fromHash(this.metadataHash, this.signature);
if (!metadataFile.exists()) {
return false;
}
} }
// If the metadata file doesn't exist, we can't check if we have any chunks // If the metadata file doesn't exist, we can't check if we have any chunks