Skip to content

Commit

Permalink
fix: correct dirty logic again
Browse files Browse the repository at this point in the history
  • Loading branch information
Kyle Clemens committed Jun 27, 2018
1 parent 9fbc7b2 commit eeb6c55
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webserver/src/database/models/pastes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ impl Paste {
let dirty = repo
.statuses(None)?
.iter()
.any(|x| x.status() != Status::CURRENT || x.status() != Status::IGNORED);
.any(|x| x.status() != Status::CURRENT && x.status() != Status::IGNORED);
Ok(dirty)
}

Expand Down

0 comments on commit eeb6c55

Please sign in to comment.