Skip to content

Commit 932bc25

Browse files
committed
Remove unneeded line
1 parent bdc6dad commit 932bc25

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,6 @@ fn main() -> Result<ExitCode> {
152152
}
153153

154154
stdout.write_all(b"\n\n")?;
155-
156155
let pending = app_state.n_pending();
157156
if pending == 1 {
158157
stdout.write_all(b"One exercise pending: ")?;
@@ -167,6 +166,7 @@ fn main() -> Result<ExitCode> {
167166
.current_exercise()
168167
.terminal_file_link(&mut stdout)?;
169168
stdout.write_all(b"\n")?;
169+
170170
return Ok(ExitCode::FAILURE);
171171
} else {
172172
app_state.render_final_message(&mut stdout)?;

src/run.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ pub fn run(app_state: &mut AppState) -> Result<ExitCode> {
2929
.current_exercise()
3030
.terminal_file_link(&mut stdout)?;
3131
stdout.write_all(b" with errors\n")?;
32+
3233
return Ok(ExitCode::FAILURE);
3334
}
3435

src/watch/state.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -281,8 +281,6 @@ impl<'a> WatchState<'a> {
281281
}
282282

283283
pub fn check_all_exercises(&mut self, stdout: &mut StdoutLock) -> Result<ExercisesProgress> {
284-
stdout.write_all(b"\n")?;
285-
286284
if let Some(first_pending_exercise_ind) = self.app_state.check_all_exercises(stdout)? {
287285
// Only change exercise if the current one is done.
288286
if self.app_state.current_exercise().done {

0 commit comments

Comments
 (0)