Skip to content

Commit 1e93408

Browse files
committed
Session is now a Struct
1 parent a4af11d commit 1e93408

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

WooCommerce/Classes/System/Session.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import Networking
55

66
/// Represents the current Session's State: Credentials + Active SiteID.
77
///
8-
class Session {
8+
struct Session {
99

1010
/// KeychainAccess Wrapper.
1111
///
@@ -52,7 +52,7 @@ class Session {
5252

5353
/// Nukes all of the known Session's properties.
5454
///
55-
func reset() {
55+
mutating func reset() {
5656
credentials = nil
5757
storeID = nil
5858
}

WooCommerce/Classes/Yosemite/StoresManager.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class StoresManager {
1414

1515
/// Represents the Active Session's State
1616
///
17-
private let session: Session
17+
private(set) var session: Session
1818

1919
/// Active StoresManager State.
2020
///

0 commit comments

Comments
 (0)