Skip to content

Commit 42d68d6

Browse files
committed
Marked UserDefaults.synchronize() as @discardableResult
- Same as in Darwin
1 parent 161ab81 commit 42d68d6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Diff for: Foundation/UserDefaults.swift

+1
Original file line numberDiff line numberDiff line change
@@ -385,6 +385,7 @@ open class UserDefaults: NSObject {
385385
}
386386
}
387387

388+
@discardableResult
388389
open func synchronize() -> Bool {
389390
return CFPreferencesAppSynchronize(suite?._cfObject ?? kCFPreferencesCurrentApplication)
390391
}

0 commit comments

Comments
 (0)