From 15b3b0e9f8823752f80c7e597a70749813e61c79 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Mon, 25 Dec 2017 15:26:48 -0500 Subject: Always use braces --- src/gui/WidgetFactory.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/gui/WidgetFactory.cpp') diff --git a/src/gui/WidgetFactory.cpp b/src/gui/WidgetFactory.cpp index d77bc7d7..71db9ff4 100644 --- a/src/gui/WidgetFactory.cpp +++ b/src/gui/WidgetFactory.cpp @@ -43,8 +43,9 @@ WidgetFactory::find_ui_file() { // Try file in bundle (directory where executable resides) ui_filename = Ingen::bundle_file_path("ingen_gui.ui"); - if (is_readable(ui_filename)) + if (is_readable(ui_filename)) { return; + } // Try ENGINE_UI_PATH from the environment const char* const env_path = getenv("INGEN_UI_PATH"); @@ -55,8 +56,9 @@ WidgetFactory::find_ui_file() // Try the default system installed path ui_filename = Ingen::data_file_path("ingen_gui.ui"); - if (is_readable(ui_filename)) + if (is_readable(ui_filename)) { return; + } throw std::runtime_error((fmt("Unable to find ingen_gui.ui in %1%\n") % INGEN_DATA_DIR).str()); -- cgit v1.2.1