Fix negation error
We check whether the old key already exists. If it does _not_ exist, the entry is borrowed, from my understanding. I'm not sure, though.
This commit is contained in:
parent
d5a275fec0
commit
caa214f1bd
1 changed files with 1 additions and 1 deletions
|
@ -667,7 +667,7 @@ impl Store {
|
|||
Ok(m) => m,
|
||||
};
|
||||
|
||||
if hsmap.contains_key(&old_id) {
|
||||
if !hsmap.contains_key(&old_id) {
|
||||
return Err(SE::new(SEK::EntryAlreadyBorrowed, None));
|
||||
} else {
|
||||
let old_id_pb = try!(old_id.clone().with_base(self.path().clone()).into_pathbuf());
|
||||
|
|
Loading…
Reference in a new issue