Skip to content

Commit

Permalink
Apple SwiftFormat
Browse files Browse the repository at this point in the history
  • Loading branch information
AvdLee committed Mar 1, 2024
1 parent 9089122 commit 5e1eab4
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions Sources/Logging/LogsTrimmer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,12 @@ struct LogsTrimmer {
}

// Find all matches in the input string
let matches = regex.matches(
in: logs,
range: NSRange(location: 0, length: logs.utf16.count)
).suffix(numberOfLinesToTrim)
let matches = regex
.matches(
in: logs,
range: NSRange(location: 0, length: logs.utf16.count)
)
.suffix(numberOfLinesToTrim)

guard let firstMatch = matches.first, let lastMatch = matches.last else {
return
Expand Down

0 comments on commit 5e1eab4

Please sign in to comment.