Skip to content

Commit

Permalink
lint --fix all prettier violations
Browse files Browse the repository at this point in the history
  • Loading branch information
rekmarks committed Apr 15, 2021
1 parent e5090fb commit fdec723
Show file tree
Hide file tree
Showing 51 changed files with 3,042 additions and 971 deletions.
8 changes: 6 additions & 2 deletions src/BaseController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,9 @@ export class BaseController<C extends BaseConfig, S extends BaseState> {
*/
configure(config: Partial<C>, overwrite = false, fullUpdate = true) {
if (fullUpdate) {
this.internalConfig = overwrite ? (config as C) : Object.assign(this.internalConfig, config);
this.internalConfig = overwrite
? (config as C)
: Object.assign(this.internalConfig, config);

for (const key in this.internalConfig) {
if (typeof this.internalConfig[key] !== 'undefined') {
Expand Down Expand Up @@ -172,7 +174,9 @@ export class BaseController<C extends BaseConfig, S extends BaseState> {
* @param overwrite - Overwrite state instead of merging
*/
update(state: Partial<S>, overwrite = false) {
this.internalState = overwrite ? Object.assign({}, state as S) : Object.assign({}, this.internalState, state);
this.internalState = overwrite
? Object.assign({}, state as S)
: Object.assign({}, this.internalState, state);
this.notify();
}
}
Expand Down
Loading

0 comments on commit fdec723

Please sign in to comment.