Skip to content
This repository has been archived by the owner on Oct 3, 2023. It is now read-only.

Exporter/Stackdriver: Enforce strictNullChecks and noUnusedLocals #408

Conversation

mayurkale22
Copy link
Member

This is part of #348

@@ -39,8 +39,8 @@ export class StackdriverStatsExporter implements StatsEventListener {
private projectId: string;
private metricPrefix: string;
private displayNamePrefix: string;
private onMetricUploadError: (err: Error) => void;
private timer: NodeJS.Timer;
private onMetricUploadError!: (err: Error) => void;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is the ! needed here, could this be ? instead and then just handle the cases where it's missing?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

@mayurkale22 mayurkale22 force-pushed the enforce_strictNullcheck_stackdriver branch from 913c1ec to 7d2ec3e Compare March 11, 2019 18:15
@codecov-io
Copy link

Codecov Report

Merging #408 into master will increase coverage by 0.55%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #408      +/-   ##
==========================================
+ Coverage    94.8%   95.36%   +0.55%     
==========================================
  Files         136       89      -47     
  Lines        8997     5393    -3604     
  Branches      663      313     -350     
==========================================
- Hits         8530     5143    -3387     
+ Misses        467      250     -217
Impacted Files Coverage Δ
src/stats/view.ts 97.43% <0%> (-0.24%) ⬇️
test/test-view.ts 98.17% <0%> (-0.21%) ⬇️
src/stats/recorder.ts 97.56% <0%> (-0.06%) ⬇️
src/index.ts 100% <0%> (ø) ⬆️
src/stats/types.ts 100% <0%> (ø) ⬆️
test/test-recorder.ts 100% <0%> (ø) ⬆️
src/stats/stats.ts 98.07% <0%> (ø) ⬆️
src/stackdriver-cloudtrace.ts
test/test-ocagent.ts
test/nocks.ts
... and 44 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 3876e91...7d2ec3e. Read the comment docs.

@mayurkale22 mayurkale22 merged commit 1c0d0b5 into census-instrumentation:master Mar 13, 2019
@mayurkale22 mayurkale22 deleted the enforce_strictNullcheck_stackdriver branch March 13, 2019 01:43
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants