Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(706)

Unified Diff: test/codegen/expect/sunflower/sunflower.js

Issue 1524843002: JS: Format if statements with no else on a single line (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: rebased Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « test/codegen/expect/script.js ('k') | test/codegen/expect/temps.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/codegen/expect/sunflower/sunflower.js
diff --git a/test/codegen/expect/sunflower/sunflower.js b/test/codegen/expect/sunflower/sunflower.js
index c06b37de69bcef1c9fe793b351c85dc8e99b9833..0d3b356a0c2b61dc39a59deb955365012cb4b6d1 100644
--- a/test/codegen/expect/sunflower/sunflower.js
+++ b/test/codegen/expect/sunflower/sunflower.js
@@ -56,11 +56,9 @@ dart_library.library('sunflower/sunflower', null, /* Imports */[
dart.fn(draw, dart.void, []);
class SunflowerSeed extends dart.mixin(circle.Circle, painter.CirclePainter) {
SunflowerSeed(x, y, radius, color) {
- if (color === void 0)
- color = null;
+ if (color === void 0) color = null;
super.Circle(x, y, radius);
- if (color != null)
- this.color = color;
+ if (color != null) this.color = color;
}
}
dart.setSignature(SunflowerSeed, {
« no previous file with comments | « test/codegen/expect/script.js ('k') | test/codegen/expect/temps.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698