From bcc76b37641a5f4c05fbe84059ed1f2a842bade8 Mon Sep 17 00:00:00 2001 From: Alex Browne Date: Tue, 12 Jun 2018 14:09:42 -0700 Subject: Fix linter errors --- packages/sol-cov/src/coverage_subprovider.ts | 6 ++---- packages/sol-cov/src/profiler_subprovider.ts | 6 ++---- packages/sol-cov/src/trace_collection_subprovider.ts | 4 ++-- 3 files changed, 6 insertions(+), 10 deletions(-) (limited to 'packages/sol-cov') diff --git a/packages/sol-cov/src/coverage_subprovider.ts b/packages/sol-cov/src/coverage_subprovider.ts index 1dcbfcbfe..6fb709e86 100644 --- a/packages/sol-cov/src/coverage_subprovider.ts +++ b/packages/sol-cov/src/coverage_subprovider.ts @@ -1,5 +1,3 @@ -import * as _ from 'lodash'; - import { AbstractArtifactAdapter } from './artifact_adapters/abstract_artifact_adapter'; import { CoverageManager } from './coverage_manager'; import { TraceCollectionSubprovider } from './trace_collection_subprovider'; @@ -27,12 +25,12 @@ export class CoverageSubprovider extends TraceCollectionSubprovider { this._coverageManager = new CoverageManager(artifactAdapter, isVerbose); } public async handleTraceInfoAsync(traceInfo: TraceInfo): Promise { - return this._coverageManager.computeCoverageAsync(traceInfo); + await this._coverageManager.computeCoverageAsync(traceInfo); } /** * Write the test coverage results to a file in Istanbul format. */ public async writeCoverageAsync(): Promise { - return this._coverageManager.writeCoverageAsync(); + await this._coverageManager.writeCoverageAsync(); } } diff --git a/packages/sol-cov/src/profiler_subprovider.ts b/packages/sol-cov/src/profiler_subprovider.ts index c66cd1dec..34c125b86 100644 --- a/packages/sol-cov/src/profiler_subprovider.ts +++ b/packages/sol-cov/src/profiler_subprovider.ts @@ -1,5 +1,3 @@ -import * as _ from 'lodash'; - import { AbstractArtifactAdapter } from './artifact_adapters/abstract_artifact_adapter'; import { ProfilerManager } from './profiler_manager'; import { TraceCollectionSubprovider } from './trace_collection_subprovider'; @@ -27,12 +25,12 @@ export class ProfilerSubprovider extends TraceCollectionSubprovider { this._profilerManager = new ProfilerManager(artifactAdapter, isVerbose); } public async handleTraceInfoAsync(traceInfo: TraceInfo): Promise { - return this._profilerManager.computeCoverageAsync(traceInfo); + await this._profilerManager.computeCoverageAsync(traceInfo); } /** * Write the test profiler results to a file in Istanbul format. */ public async writeProfilerOutputAsync(): Promise { - return this._profilerManager.writeProfilerOutputAsync(); + await this._profilerManager.writeProfilerOutputAsync(); } } diff --git a/packages/sol-cov/src/trace_collection_subprovider.ts b/packages/sol-cov/src/trace_collection_subprovider.ts index 5e90e3907..742735935 100644 --- a/packages/sol-cov/src/trace_collection_subprovider.ts +++ b/packages/sol-cov/src/trace_collection_subprovider.ts @@ -190,7 +190,7 @@ export abstract class TraceCollectionSubprovider extends Subprovider { runtimeBytecode, }; } - this.handleTraceInfoAsync(traceInfo); + await this.handleTraceInfoAsync(traceInfo); } } else { for (const subcallAddress of subcallAddresses) { @@ -202,7 +202,7 @@ export abstract class TraceCollectionSubprovider extends Subprovider { address: subcallAddress, runtimeBytecode, }; - this.handleTraceInfoAsync(traceInfo); + await this.handleTraceInfoAsync(traceInfo); } } } -- cgit v1.2.3