Skip to content

Commit

Permalink
Changed vs Unchanged
Browse files Browse the repository at this point in the history
  • Loading branch information
nimrodkor committed Jul 30, 2024
1 parent d7ccf7b commit f088562
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/display/json.rs
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,13 @@ impl<'f> From<&'f DiffResult> for File<'f> {
match (from.as_str(), to.as_str()) {
(NON_EXISTENT_PERMISSIONS, _) => Status::Created,
(_, NON_EXISTENT_PERMISSIONS) => Status::Deleted,
_ => Status::Changed,
_ => {
if from == to {
Status::Unchanged
} else {
Status::Changed
}
}
}
} else {
Status::Unchanged
Expand Down

0 comments on commit f088562

Please sign in to comment.