diff --git a/fix/fixer_iso_checksum_type_and_url.go b/fix/fixer_iso_checksum_type_and_url.go index 314d59127..3730e2871 100644 --- a/fix/fixer_iso_checksum_type_and_url.go +++ b/fix/fixer_iso_checksum_type_and_url.go @@ -27,7 +27,9 @@ func (FixerISOChecksumTypeAndURL) Fix(input map[string]interface{}) (map[string] checksum := stringValue(builder["iso_checksum"]) delete(builder, "iso_checksum_url") delete(builder, "iso_checksum_type") - + if checksum == "" && checksumUrl == "" { + continue + } if checksumUrl != "" { checksum = "file:" + checksumUrl } else if checksumType != "" {