style: add braces to if statements for consistency
Consolidate if-let chain formatting by adding missing braces throughout the project. This improves readability and ensures consistency across the codebase. Co-Authored-By: fiddlerwoaroof/git-smart-commit (gemma-4-31B-it-UD-Q4_K_XL.gguf)
This commit is contained in:
+4
-3
@@ -168,9 +168,10 @@ fn draw(f: &mut Frame, app: &App) {
|
||||
f.render_widget(HelpWidget::new(app.help_page), size);
|
||||
}
|
||||
if matches!(app.mode, AppMode::ImportWizard)
|
||||
&& let Some(wizard) = &app.wizard {
|
||||
f.render_widget(ImportWizardWidget::new(wizard), size);
|
||||
}
|
||||
&& let Some(wizard) = &app.wizard
|
||||
{
|
||||
f.render_widget(ImportWizardWidget::new(wizard), size);
|
||||
}
|
||||
// ExportPrompt now uses the minibuffer at the bottom bar.
|
||||
if app.is_empty_model() && matches!(app.mode, AppMode::Normal | AppMode::CommandMode { .. }) {
|
||||
draw_welcome(f, main_chunks[1]);
|
||||
|
||||
Reference in New Issue
Block a user