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/regression/122.unit

Issue 846133002: Put conditional operators on the left. (Closed) Base URL: https://github.com/dart-lang/dart_style.git@master
Patch Set: Update version. Created 5 years, 11 months 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/regression/115.stmt ('k') | test/regression/44.stmt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/regression/122.unit
diff --git a/test/regression/122.unit b/test/regression/122.unit
index b4a0794ce5f7bf2eecb79b85ee9c52d2c1a0bc04..376f0efdece60e41a919b737127036212eb053e3 100644
--- a/test/regression/122.unit
+++ b/test/regression/122.unit
@@ -5,11 +5,11 @@ var xsrfValue = _urlIsSameOrigin(url) ?
defaults.xsrfCookieName] :
null;
<<<
-var xsrfValue = _urlIsSameOrigin(url) ?
- _cookies[xsrfCookieName != null ?
- xsrfCookieName :
- defaults.xsrfCookieName] :
- null;
+var xsrfValue = _urlIsSameOrigin(url)
+ ? _cookies[xsrfCookieName != null
+ ? xsrfCookieName
+ : defaults.xsrfCookieName]
+ : null;
>>>
class _Streams {
_Streams(this._scope, this._exceptionHandler, _Streams inheritStreams)
@@ -20,7 +20,7 @@ class _Streams {
<<<
class _Streams {
_Streams(this._scope, this._exceptionHandler, _Streams inheritStreams)
- : _typeCounts = inheritStreams == null ?
- new HashMap<String, int>() :
- new HashMap.from(inheritStreams._typeCounts);
+ : _typeCounts = inheritStreams == null
+ ? new HashMap<String, int>()
+ : new HashMap.from(inheritStreams._typeCounts);
}
« no previous file with comments | « test/regression/115.stmt ('k') | test/regression/44.stmt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698