Skip to content
This repository was archived by the owner on Nov 18, 2024. It is now read-only.

Commit c9d313c

Browse files
committed
Last changes
1 parent 34362af commit c9d313c

File tree

2 files changed

+10
-14
lines changed

2 files changed

+10
-14
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ These are our current planned features. (Most features under CLI are also featur
2323

2424
## Help us!
2525
You can help us in different ways.
26-
- 🪲 | Be a Bughunter: Search for bugs and file an issue if the output isn't as expected or if the program crashes.
27-
- 🖥️ | Suggest features: File an issue (use the Suggest features issue template) and the devs will look into it.
28-
- 🧹 | Fix issues: Are you a Rust developer and interested in the project: try to fix the issues and open a pull request! (Especially the ones tagged with `good first issue`)
26+
- 🪲 Be a Bughunter: Search for bugs and file an issue if the output isn't as expected or if the program crashes.
27+
- 🖥️ Suggest features: File an issue (use the Suggest features issue template) and the devs will look into it.
28+
- 🧹 Fix issues: Are you a Rust developer and interested in the project: try to fix the issues and open a pull request! (Especially the ones tagged with `good first issue`)
2929

3030
**Contributing guidelines** for these three roles coming soon!

src/main.rs

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,6 @@ fn delete_notes() -> Result<(), Box<dyn std::error::Error>> {
163163
.interact()
164164
.unwrap();
165165

166-
// TODO: see the above TODO
167166
let delete_note_bool = Confirm::with_theme(&ColorfulTheme::default())
168167
.with_prompt("Are you sure that you want to delete these note(s)?")
169168
.default(true)
@@ -174,16 +173,13 @@ fn delete_notes() -> Result<(), Box<dyn std::error::Error>> {
174173
println!("You can't delete notes, because there are none.");
175174
return Ok(());
176175
} else {
177-
return Ok(for selection in selections {
178-
return match delete_note_bool {
179-
true => {
180-
api::delete_note(selection)?;
181-
println!("Notes deleted successfully.");
182-
Ok(())
183-
}
184-
false => Ok(()),
185-
};
186-
});
176+
for selection in selections {
177+
if delete_note_bool {
178+
api::delete_note(selection)?;
179+
}
180+
}
181+
println!("Notes deleted successfully.");
182+
return Ok(());
187183
}
188184
}
189185

0 commit comments

Comments
 (0)