Skip to content

Commit c248496

Browse files
author
Baris Sencan
committed
Remove left-over value and format tuple element labels
1 parent ed345cd commit c248496

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

JSONHelper/JSONHelper.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,10 +97,10 @@ public func <-- <T>(inout property: T, value: AnyObject?) -> T {
9797
}
9898

9999
// Special handling for value and format pair to NSDate conversion.
100-
public func <-- (inout property: NSDate?, valueAndFormat: (value: AnyObject?, format: AnyObject?)) -> NSDate? {
100+
public func <-- (inout property: NSDate?, valueAndFormat: (AnyObject?, AnyObject?)) -> NSDate? {
101101
var newValue: NSDate?
102-
if let dateString = convertToNilIfNull(valueAndFormat.value) as? String {
103-
if let formatString = convertToNilIfNull(valueAndFormat.format) as? String {
102+
if let dateString = convertToNilIfNull(valueAndFormat.0) as? String {
103+
if let formatString = convertToNilIfNull(valueAndFormat.1) as? String {
104104
let dateFormatter = NSDateFormatter()
105105
dateFormatter.dateFormat = formatString
106106
if let newDate = dateFormatter.dateFromString(dateString) {

0 commit comments

Comments
 (0)