Skip to content

Commit

Permalink
simplify slightly
Browse files Browse the repository at this point in the history
  • Loading branch information
wez committed Sep 14, 2024
1 parent 0f770f2 commit cb4ca3f
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions config/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1644,12 +1644,11 @@ fn default_scrollback_lines() -> usize {
const MAX_SCROLLBACK_LINES: usize = 999_999_999;
fn validate_scrollback_lines(value: &usize) -> Result<(), String> {
if *value > MAX_SCROLLBACK_LINES {
Err(format!(
return Err(format!(
"Illegal value {value} for scrollback_size; it must be <= {MAX_SCROLLBACK_LINES}!"
))
} else {
Ok(())
));
}
Ok(())
}

fn default_initial_rows() -> u16 {
Expand Down

0 comments on commit cb4ca3f

Please sign in to comment.