Skip to content

Commit

Permalink
Tweak ready text
Browse files Browse the repository at this point in the history
  • Loading branch information
prasmussen committed Aug 8, 2024
1 parent 1c2432c commit c69c37a
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions glot_core/src/page/snippet_page.rs
Original file line number Diff line number Diff line change
Expand Up @@ -755,11 +755,9 @@ fn extract_language_version(model: &Model) -> Option<String> {
}

fn view_output_panel(model: &Model) -> Markup {
let ready_info = if let Some(version) = extract_language_version(model) {
format!("READY.\n\n{}", version)
} else {
"READY.".to_string()
};
let ready_info = extract_language_version(model)
.map(|version| format!("{}\nREADY.", version))
.unwrap_or_default();

html! {
div class="h-full border-b border-x border-gray-400 shadow-lg" {
Expand Down

0 comments on commit c69c37a

Please sign in to comment.