Fix lint issues.
This commit is contained in:
parent
962d5fa45c
commit
d210692d7d
@ -28,8 +28,7 @@ public final class DateParser {
|
||||
|
||||
if dateIsW3CDate(buffer, numberOfBytes) {
|
||||
return parseW3CDate(buffer, numberOfBytes)
|
||||
}
|
||||
else if dateIsPubDate(buffer, numberOfBytes) {
|
||||
} else if dateIsPubDate(buffer, numberOfBytes) {
|
||||
return parsePubDate(buffer, numberOfBytes)
|
||||
}
|
||||
|
||||
@ -335,13 +334,13 @@ private extension DateParser {
|
||||
timeInfo.tm_min = CInt(minute)
|
||||
timeInfo.tm_hour = CInt(hour)
|
||||
timeInfo.tm_mday = CInt(day)
|
||||
timeInfo.tm_mon = CInt(month - 1) //It's 1-based coming in
|
||||
timeInfo.tm_year = CInt(year - 1900) //see time.h -- it's years since 1900
|
||||
timeInfo.tm_mon = CInt(month - 1) // It's 1-based coming in
|
||||
timeInfo.tm_year = CInt(year - 1900) // see time.h -- it's years since 1900
|
||||
timeInfo.tm_wday = -1
|
||||
timeInfo.tm_yday = -1
|
||||
timeInfo.tm_isdst = -1
|
||||
timeInfo.tm_gmtoff = 0;
|
||||
timeInfo.tm_zone = nil;
|
||||
timeInfo.tm_gmtoff = 0
|
||||
timeInfo.tm_zone = nil
|
||||
|
||||
let rawTime = timegm(&timeInfo) - timeZoneOffset
|
||||
if rawTime == time_t(UInt32.max) {
|
||||
@ -560,7 +559,7 @@ private extension DateParser {
|
||||
break
|
||||
}
|
||||
|
||||
digits[numberOfDigitsFound] = ch - 48; // '0' is 48
|
||||
digits[numberOfDigitsFound] = ch - 48 // '0' is 48
|
||||
numberOfDigitsFound+=1
|
||||
if numberOfDigitsFound >= maximumNumberOfDigits {
|
||||
break
|
||||
|
Loading…
x
Reference in New Issue
Block a user