Skip to content
This repository has been archived by the owner on May 10, 2024. It is now read-only.

Commit

Permalink
Brian Clifton review
Browse files Browse the repository at this point in the history
  • Loading branch information
iccub committed Nov 18, 2022
1 parent b6034ae commit 82a803e
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions Client/BraveSkus/BraveSkusManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -107,12 +107,7 @@ public class BraveSkusManager {
let credentialSummaryJson = try jsonDecoder.decode(CredentialSummary.self, from: data)

if credentialSummaryJson.isValid {
Preferences.VPN.expirationDate.value = credentialSummaryJson.expiresAt

// The credential has not expired yet, we can proceed with preparing it.
if credentialSummaryJson.expiresAt > Date() {
self?.prepareCredentialsPresentation(for: domain, path: "*", resultCredential: nil)
}
self?.prepareCredentialsPresentation(for: domain, path: "*", resultCredential: nil)
} else {
if !credentialSummaryJson.active {
Logger.module.debug("The credential summary is not active")
Expand Down

0 comments on commit 82a803e

Please sign in to comment.