-
Notifications
You must be signed in to change notification settings - Fork 96
Propagation-Jaeger: Enforce strictNullChecks and noUnusedLocals #433
Propagation-Jaeger: Enforce strictNullChecks and noUnusedLocals #433
Conversation
3a355c5
to
cdaa308
Compare
* null. | ||
* @param value | ||
*/ | ||
const isHex: ValidationFn = (value: string): boolean => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could this be a function declaration function isHex
rather than an expression? Same for isNotAllZeros
, isLength
and compose
below.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will handle this in separate PR.
|
||
it('should return null when header is undefined', () => { | ||
// tslint:disable-next-line | ||
const headers = {} as any; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you specify a type for headers
here? Maybe an object whose keys are strings and values are string|undefined
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
packages/opencensus-propagation-jaeger/test/test-jaeger-format.ts
Outdated
Show resolved
Hide resolved
cdaa308
to
3d8f43b
Compare
Codecov Report
@@ Coverage Diff @@
## master #433 +/- ##
==========================================
+ Coverage 95.01% 95.03% +0.02%
==========================================
Files 147 147
Lines 9545 9567 +22
Branches 679 680 +1
==========================================
+ Hits 9069 9092 +23
+ Misses 476 475 -1
Continue to review full report at Codecov.
|
This is part of #348. 2 more packages to go, 20 done so far.