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

Unified Diff: pkg/analyzer/lib/instrumentation/instrumentation.dart

Issue 1906543002: Remove a couple of unnecessary is checks (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
« no previous file with comments | « no previous file | pkg/analyzer/lib/src/context/context.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/lib/instrumentation/instrumentation.dart
diff --git a/pkg/analyzer/lib/instrumentation/instrumentation.dart b/pkg/analyzer/lib/instrumentation/instrumentation.dart
index fe58cdb5abd73e306b6d995ded4f97ba78430238..92638f7531dab72c95ee86ed2361f6f80ad455cf 100644
--- a/pkg/analyzer/lib/instrumentation/instrumentation.dart
+++ b/pkg/analyzer/lib/instrumentation/instrumentation.dart
@@ -106,10 +106,8 @@ class InstrumentationService {
*/
void logAnalysisTask(String context, AnalysisTask task) {
if (_instrumentationServer != null) {
- String description =
- (task is AnalysisTask) ? task.description : task.toString();
_instrumentationServer
- .log(_join([TAG_ANALYSIS_TASK, context, description]));
+ .log(_join([TAG_ANALYSIS_TASK, context, task.description]));
}
}
« no previous file with comments | « no previous file | pkg/analyzer/lib/src/context/context.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698