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)
}
@ -340,8 +339,8 @@ private extension DateParser {
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