Skip to content

Commit

Permalink
Remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
hughns committed Nov 13, 2024
1 parent 44935ee commit b3e725f
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/settings/settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,9 @@ export class Setting<T> {
private readonly _value: BehaviorSubject<T>;
public readonly value: Observable<T>;

public readonly setValue = (value: T, persist = true): void => {
public readonly setValue = (value: T): void => {
this._value.next(value);
if (persist) {
localStorage.setItem(this.key, JSON.stringify(value));
}
localStorage.setItem(this.key, JSON.stringify(value));
};
}

Expand Down

0 comments on commit b3e725f

Please sign in to comment.