Commit 2b8f4e3
committed
merge-recursive: avoid confusing logic in was_dirty()
It took this developer more than a moment to verify that was_dirty()
really returns 0 (i.e. "false") if the file was not even tracked. In
other words, the `dirty` variable that was initialized to 1 (i.e.
"true") and then negated to be returned was not helping readability.
The same holds for the final return: rather than assigning the value to
return to `dirty` and then *immediately* returning that, we can simplify
it to a single statement.1 parent f461d66 commit 2b8f4e3
1 file changed
Lines changed: 2 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
873 | 873 | | |
874 | 874 | | |
875 | 875 | | |
876 | | - | |
877 | 876 | | |
878 | 877 | | |
879 | | - | |
| 878 | + | |
880 | 879 | | |
881 | 880 | | |
882 | 881 | | |
883 | | - | |
884 | | - | |
| 882 | + | |
885 | 883 | | |
886 | 884 | | |
887 | 885 | | |
| |||
0 commit comments