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

Unified Diff: tools/telemetry/telemetry/benchmark.py

Issue 388573002: Delete dead code (the first if branch) in Benchmark.CreateExpectations. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 5 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/telemetry/telemetry/benchmark.py
diff --git a/tools/telemetry/telemetry/benchmark.py b/tools/telemetry/telemetry/benchmark.py
index 5f3c75d596a1489adc90bde12cdf6870ebaca218..226e2610bba066d4d1f2678b1914eca8088b371f 100644
--- a/tools/telemetry/telemetry/benchmark.py
+++ b/tools/telemetry/telemetry/benchmark.py
@@ -191,10 +191,7 @@ class Benchmark(command_line.Command):
By default, it will create an empty expectations set. Override to generate
custom expectations.
"""
- if hasattr(cls, 'expectations'):
- return cls.expectations
- else:
- return test_expectations.TestExpectations()
+ return test_expectations.TestExpectations()
def AddCommandLineArgs(parser):
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698