Skip to content

Commit

Permalink
fix: update has impl
Browse files Browse the repository at this point in the history
  • Loading branch information
Bob Bergman committed Nov 2, 2018
1 parent c9ac105 commit ff3aa73
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/config/configStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ import { set } from '@salesforce/kit';
import {
AnyJson,
Dictionary,
has,
JsonMap,
Optional,
take,
takeAnyJson
} from '@salesforce/ts-types';

Expand Down Expand Up @@ -117,7 +117,7 @@ export abstract class BaseConfigStore implements ConfigStore {
* @param {string} key The key.
*/
public has(key: string): boolean {
return has(this.contents, key);
return !!take(this.contents, key);
}

/**
Expand Down

0 comments on commit ff3aa73

Please sign in to comment.