Skip to content

Commit 04145ef

Browse files
committed
Reformat try-catch block.
Signed-off-by: Ville Ranta-aho <ville@ville-pekka.com>
1 parent ebdc08e commit 04145ef

1 file changed

Lines changed: 4 additions & 7 deletions

File tree

command/src/com/mirth/connect/cli/CommandLineInterface.java

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -158,19 +158,16 @@ private void run(String[] args) {
158158
.configure(params.fileBased()
159159
.setFile(propertiesFile));
160160
Configuration config = null;
161-
try
162-
{
161+
try {
163162
// Load properties using Apache Commons Configuration2. The resulting config
164163
// instance supports variable interpolation, including environment variables
165164
// using the ${env:VARIABLE_NAME} syntax (for example ${env:MC_SERVER_URL}).
166165
config = builder.getConfiguration();
167-
}
168-
catch(ConfigurationException cex)
169-
{
166+
} catch (ConfigurationException cex) {
170167
// loading of the configuration file failed
171168
if (line.hasOption("c")) {
172-
error("We could not find the file: " + line.getOptionValue("c"), null);
173-
System.exit(2);
169+
error("We could not find the file: " + line.getOptionValue("c"), null);
170+
System.exit(2);
174171
}
175172
error("Loading configuration failed.", null);
176173
System.exit(2);

0 commit comments

Comments
 (0)