Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
clintonpi committed Jun 17, 2024
1 parent cc0cc5d commit f2b6bbe
Show file tree
Hide file tree
Showing 2 changed files with 511 additions and 67 deletions.
8 changes: 6 additions & 2 deletions Sources/SwiftASN1/Basic ASN1 Types/GeneralizedTime.swift
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,11 @@ extension GeneralizedTime: Comparable {
if lhs.hours < rhs.hours { return true } else if lhs.hours > rhs.hours { return false }
if lhs.minutes < rhs.minutes { return true } else if lhs.minutes > rhs.minutes { return false }
if lhs.seconds < rhs.seconds { return true } else if lhs.seconds > rhs.seconds { return false }
if lhs.fractionalSeconds < rhs.fractionalSeconds { return true } else if lhs.fractionalSeconds > rhs.fractionalSeconds { return false }
if lhs.fractionalSeconds < rhs.fractionalSeconds {
return true
} else if lhs.fractionalSeconds > rhs.fractionalSeconds {
return false
}

for (lhsByte, rhsByte) in zip(lhs.rawFractionalSeconds, rhs.rawFractionalSeconds) {
if lhsByte != rhsByte {
Expand All @@ -299,6 +303,6 @@ extension GeneralizedTime: Comparable {

// Since the above `zip` iteration stops at the length of the shorter `Sequence`, finally,
// compare the length of the two `Sequence`s.
return lhs.rawFractionalSeconds.count < rhs.rawFractionalSeconds.count;
return lhs.rawFractionalSeconds.count < rhs.rawFractionalSeconds.count
}
}
Loading

0 comments on commit f2b6bbe

Please sign in to comment.