Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 15a444f

Browse files
Merge pull request clearloop#9 from hulufei/master
Fix panic on `pick` command without cache
2 parents 4130ad4 + 93c566e commit 15a444f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

‎src/cmds/pick.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,9 @@ impl Command for PickCommand {
7171
let cache = Cache::new()?;
7272
let mut problems = cache.get_problems()?;
7373
if problems.is_empty() {
74-
cache.clone().download_problems()?;
75-
Self::handler(m)?
74+
cache.download_problems()?;
75+
Self::handler(m)?;
76+
return Ok(());
7677
}
7778

7879
// filtering...

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /