Change some if/else formatting

This commit is contained in:
Matt Baer 2018-04-24 09:25:29 -04:00
parent 6818ae240b
commit 58cfdf6045

View File

@ -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 {