Skip to content

Commit

Permalink
Remove use of the deprecated getWithDefault API (#2237)
Browse files Browse the repository at this point in the history
  • Loading branch information
richard-viney authored and Samanta de Barros committed Oct 16, 2020
1 parent 466250f commit fe098c4
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/ember-simple-auth/addon/configuration.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import { getWithDefault } from '@ember/object';

const DEFAULTS = {
rootURL: '',
};
Expand All @@ -26,6 +24,6 @@ export default {
rootURL: DEFAULTS.rootURL,

load(config) {
this.rootURL = getWithDefault(config, 'rootURL', DEFAULTS.rootURL);
this.rootURL = config.rootURL !== undefined ? config.rootURL : DEFAULTS.rootURL;
}
};

0 comments on commit fe098c4

Please sign in to comment.