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

Unified Diff: pkg/analysis_server/lib/src/services/completion/completion_performance.dart

Issue 1941793002: Use null aware operators to clean up code (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 4 years, 8 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
Index: pkg/analysis_server/lib/src/services/completion/completion_performance.dart
diff --git a/pkg/analysis_server/lib/src/services/completion/completion_performance.dart b/pkg/analysis_server/lib/src/services/completion/completion_performance.dart
index 0272fb889a949c645ddb5a1ec5eea5b1f43de16a..7c646045e1279bede3d83dfd4ad8c7caa73634f9 100644
--- a/pkg/analysis_server/lib/src/services/completion/completion_performance.dart
+++ b/pkg/analysis_server/lib/src/services/completion/completion_performance.dart
@@ -42,7 +42,7 @@ class CompletionPerformance {
void complete([String tag = null]) {
_stopwatch.stop();
- _logDuration(tag != null ? tag : 'total time', _stopwatch.elapsed);
+ _logDuration(tag ?? 'total time', _stopwatch.elapsed);
}
void logElapseTime(String tag) {

Powered by Google App Engine
This is Rietveld 408576698