Skip to content

Commit b8ebfeb

Browse files
committed
cleanup
1 parent 44d7fb3 commit b8ebfeb

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/app.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ impl App {
111111
input: Input,
112112
theme: Theme,
113113
key_config: KeyConfig,
114-
) -> Self {
114+
) -> Result<Self> {
115115
log::trace!("open repo at: {:?}", &repo);
116116

117117
let queue = Queue::new();
@@ -313,9 +313,9 @@ impl App {
313313
popup_stack: PopupStack::default(),
314314
};
315315

316-
app.set_tab(tab).expect("impossible");
316+
app.set_tab(tab)?;
317317

318-
app
318+
Ok(app)
319319
}
320320

321321
///

src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ fn run_app(
176176
input.clone(),
177177
theme,
178178
key_config,
179-
);
179+
)?;
180180

181181
let mut spinner = Spinner::default();
182182
let mut first_update = true;

0 commit comments

Comments
 (0)