Skip to content

Commit

Permalink
Fixed bug with sha-less diff files
Browse files Browse the repository at this point in the history
  • Loading branch information
TheAlternateDoctor committed Mar 12, 2024
1 parent 534d07e commit 879f303
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ fn patch_msbt(args: Args) -> ::msbt::Result<()> {
let _final_filename = lines.next().unwrap()?;
let patch_name = lines.next().unwrap()?;
let sha256 = lines.next().unwrap()?;
if sha256 != "\n" {
if sha256 != "" {
let bytes = fs::read(args.original.clone()).unwrap();
let hash = sha256::digest(bytes);
if hash != sha256 {
Expand Down

0 comments on commit 879f303

Please sign in to comment.