Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 3542230

Browse files
committed
refactor
1 parent 8a2b474 commit 3542230

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

gix/src/object/tree/mod.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -131,11 +131,9 @@ impl<'repo> Tree<'repo> {
131131
ControlFlow::Break(entry) => {
132132
let entry = if let Some(e) = entry {
133133
let inner = e.into();
134-
135134
if e.mode.is_tree() {
136-
let id = e.oid.to_owned();
137-
data_id = id;
138-
self.repo.find(&id, &mut self.data)?;
135+
data_id = e.oid.to_owned();
136+
self.repo.find(&data_id, &mut self.data)?;
139137
self.id = data_id;
140138
}
141139

0 commit comments

Comments
 (0)