Skip to content

Commit

Permalink
chore: remove unused suppressGetSessionWarning
Browse files Browse the repository at this point in the history
  • Loading branch information
kangmingtay committed Jan 17, 2025
1 parent 79b41a6 commit b1771da
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/GoTrueClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,6 @@ export default class GoTrueClient {
[key: string]: string
}
protected hasCustomAuthorizationHeader = false
protected suppressGetSessionWarning = false
protected fetch: Fetch
protected lock: LockFunc
protected lockAcquired = false
Expand Down Expand Up @@ -2048,9 +2047,6 @@ export default class GoTrueClient {
*/
private async _saveSession(session: Session) {
this._debug('#_saveSession()', session)
// _saveSession is always called whenever a new session has been acquired
// so we can safely suppress the warning returned by future getSession calls
this.suppressGetSessionWarning = true
await setItemAsync(this.storage, this.storageKey, session)
}

Expand Down

0 comments on commit b1771da

Please sign in to comment.