By omitting curly braces, your code won't run faster. Your colleague will run slower.

This commit is contained in:
Federico Fissore 2015-06-19 10:37:21 +02:00
parent cd5678656e
commit 9165af4751
1 changed files with 6 additions and 3 deletions

View File

@ -513,12 +513,15 @@ public class BaseNoGui {
// - calls Sketch.prepare() that calls Sketch.ensureExistence()
// - calls Sketch.build(verbose=false) that calls Sketch.ensureExistence(), set progressListener and calls Compiler.build()
// - calls Sketch.upload() (see later...)
if (!data.getFolder().exists()) showError(_("No sketch"), _("Can't find the sketch in the specified path"), null);
if (!data.getFolder().exists()) {
showError(_("No sketch"), _("Can't find the sketch in the specified path"), null);
}
String suggestedClassName = Compiler.build(data, tempBuildFolder.getAbsolutePath(), tempBuildFolder, null, parser.isDoVerboseBuild(), false);
if (suggestedClassName == null) showError(_("Error while verifying"), _("An error occurred while verifying the sketch"), null);
if (suggestedClassName == null) {
showError(_("Error while verifying"), _("An error occurred while verifying the sketch"), null);
}
showMessage(_("Done compiling"), _("Done compiling"));
// - chiama Sketch.upload() ... to be continued ...
Uploader uploader = Compiler.getUploaderByPreferences(parser.isNoUploadPort());
if (uploader.requiresAuthorization() && !PreferencesData.has(uploader.getAuthorizationKey())) showError("...", "...", null);
try {