Skip to content

Commit ca88890

Browse files
committed
Set 'state' property to private to better control access
1 parent bd985cb commit ca88890

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

NetworkingInOperations-Example/Data/Abstract/ConcurrentOperation.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,13 @@ class ConcurrentOperation<T>: Operation {
2222

2323
// MARK: - State
2424

25-
enum State: String {
25+
private enum State: String {
2626
case ready = "isReady"
2727
case executing = "isExecuting"
2828
case finished = "isFinished"
2929
}
3030

31-
var state = State.ready {
31+
private var state = State.ready {
3232
willSet {
3333
willChangeValue(forKey: newValue.rawValue)
3434
willChangeValue(forKey: state.rawValue)

0 commit comments

Comments
 (0)