Skip to content

Commit

Permalink
Cleanup unneeded code
Browse files Browse the repository at this point in the history
  • Loading branch information
blinktag committed Feb 27, 2024
1 parent 3c05e76 commit 667be1b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1290,9 +1290,7 @@ pub fn delete_path<'a>(json: &'a str, path: &'a str) -> Result<String, GJSONErro
// Do nothing
}
}
if json.as_bytes()[i] == b',' {
return Ok(format!("{}{}", &json[..i].trim(), &json[value_end..].trim()))
}

i -= 1;
}
}
Expand Down

0 comments on commit 667be1b

Please sign in to comment.