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

Unified Diff: test/codegen/expect/script.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/methods.js ('k') | test/codegen/expect/sunflower/sunflower.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/codegen/expect/script.js
diff --git a/test/codegen/expect/script.js b/test/codegen/expect/script.js
index 01d1980a27c512bc3967a1597c5f82f4ecbef204..47d77eb0d92a4057301b318f3970ba2a2c432eb6 100755
--- a/test/codegen/expect/script.js
+++ b/test/codegen/expect/script.js
@@ -7,8 +7,7 @@ dart_library.library('script', null, /* Imports */[
let dartx = dart.dartx;
function main(args) {
let name = args[dartx.join](' ');
- if (name == '')
- name = 'world';
+ if (name == '') name = 'world';
core.print(`hello ${name}`);
}
dart.fn(main, dart.void, [core.List$(core.String)]);
« no previous file with comments | « test/codegen/expect/methods.js ('k') | test/codegen/expect/sunflower/sunflower.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698