doc: add validation

This commit is contained in:
Joonas Koivunen
2023-08-29 11:11:27 +03:00
parent cd1b548a8f
commit d67d4b3eee

View File

@@ -773,7 +773,7 @@ impl LayerInner {
}
fn is_file_present_and_good_size(&self, m: &std::fs::Metadata) -> Result<(), NeedsDownload> {
// in future, this should include sha2-256 of the file.
// in future, this should include sha2-256 validation of the file.
if !m.is_file() {
Err(NeedsDownload::NotFile)
} else if m.len() != self.desc.file_size {