Skip to content

Commit d02b66a

Browse files
committed
Fix SwiftLint warnings
1 parent c3076f2 commit d02b66a

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

Modules/Tests/WordPressIntelligenceTests/Helpers/TestHelpers.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ enum TestHelpers {
266266
let tokenizer = NLTokenizer(unit: .word)
267267
tokenizer.string = text
268268

269-
if let language = language {
269+
if let language {
270270
tokenizer.setLanguage(language)
271271
}
272272

Modules/Tests/WordPressIntelligenceTests/PostExcerptGeneratorTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ struct PostExcerptGeneratorTests {
240240
}
241241

242242
// Performance benchmark
243-
if let maxDuration = maxDuration {
243+
if let maxDuration {
244244
let durationSeconds = Double(duration.components.seconds) + Double(duration.components.attoseconds) / 1e18
245245
let maxSeconds = Double(maxDuration.components.seconds) + Double(maxDuration.components.attoseconds) / 1e18
246246
#expect(

Modules/Tests/WordPressIntelligenceTests/PostSummaryGeneratorTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ struct PostSummaryGeneratorTests {
133133
}
134134

135135
// Performance validation
136-
if let maxDuration = maxDuration {
136+
if let maxDuration {
137137
let durationSeconds = Double(duration.components.seconds) + Double(duration.components.attoseconds) / 1e18
138138
let maxSeconds = Double(maxDuration.components.seconds) + Double(maxDuration.components.attoseconds) / 1e18
139139
#expect(

Modules/Tests/WordPressIntelligenceTests/TagSuggestionGeneratorTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ struct TagSuggestionGeneratorTests {
176176
}
177177

178178
// Performance validation
179-
if let maxDuration = maxDuration {
179+
if let maxDuration {
180180
let durationSeconds = Double(duration.components.seconds) + Double(duration.components.attoseconds) / 1e18
181181
let maxSeconds = Double(maxDuration.components.seconds) + Double(maxDuration.components.attoseconds) / 1e18
182182
#expect(

0 commit comments

Comments
 (0)