Skip to content

Commit

Permalink
fix: make sure TS compiler infer undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
raymondfeng committed Jan 16, 2018
1 parent 3adbc0b commit 4c48ece
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/context/src/resolution-session.ts
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ export class ResolutionSession {
*/
static describeInjection(injection?: Injection) {
/* istanbul ignore if */
if (injection == null) return injection;
if (injection == null) return undefined;
const name = getTargetName(
injection.target,
injection.member,
Expand Down

0 comments on commit 4c48ece

Please sign in to comment.