Skip to content

Commit

Permalink
Merge pull request #326 from ef4/tweak-types
Browse files Browse the repository at this point in the history
minor tweak to use better types
  • Loading branch information
ef4 authored Dec 4, 2020
2 parents b28699c + 8508894 commit 2947106
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/ember-auto-import/ts/leader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ const g = (global as any) as {

export class LeaderChooser {
static for(addon: AddonInstance): LeaderChooser {
let g = global as any;
let map: WeakMap<Project, LeaderChooser> = g[protocolV2];
let map: WeakMap<Project, LeaderChooser> | undefined = g[protocolV2];
if (!map) {
map = g[protocolV2] = new WeakMap();
}
Expand Down

0 comments on commit 2947106

Please sign in to comment.