From 58cfdf60458dace325000ca15a1b46f062b22bb6 Mon Sep 17 00:00:00 2001 From: Matt Baer Date: Tue, 24 Apr 2018 09:25:29 -0400 Subject: [PATCH] Change some if/else formatting --- src/window.vala | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/window.vala b/src/window.vala index 63e781f..e9272f7 100644 --- a/src/window.vala +++ b/src/window.vala @@ -327,8 +327,11 @@ public class WriteAs.MainWindow : Gtk.ApplicationWindow { var resp = file_chooser.run(); file_chooser.close(); - if (resp == Gtk.ResponseType.ACCEPT) return file_chooser.get_file(); - else throw new UserCancellable.USER_CANCELLED("FileChooserDialog"); + if (resp == Gtk.ResponseType.ACCEPT) { + return file_chooser.get_file(); + } else { + throw new UserCancellable.USER_CANCELLED("FileChooserDialog"); + } } public void open_file(File file) throws Error {