Fix lint issues.

This commit is contained in:
Brent Simmons 2025-01-22 22:08:38 -08:00
parent 962d5fa45c
commit d210692d7d

View File

@ -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