Skip to content

Commit 7164b86

Browse files
authored
Apply suggestions from code review
1 parent a1ee333 commit 7164b86

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Tests/SwiftSDKGeneratorTests/EndToEndTests.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -336,8 +336,8 @@ func buildTestcases(config: SDKConfiguration) async throws {
336336
logger.info("Built Swift SDK")
337337

338338
// Cleanup
339-
let cleanupSdk: () async -> Void = {
340-
logger.info("Removing Swift SDK to cleanup...")
339+
func cleanupSDK() async {
340+
logger.info("Removing Swift SDK to clean up...")
341341
try? await Shell.run("swift experimental-sdk remove \(bundleName)")
342342
}
343343

@@ -349,12 +349,12 @@ func buildTestcases(config: SDKConfiguration) async throws {
349349
)
350350
}
351351
} catch {
352-
await cleanupSdk()
352+
await cleanupSDK()
353353
throw error
354354
}
355355
}
356356

357-
await cleanupSdk()
357+
await cleanupSDK()
358358
}
359359

360360
final class Swift59_UbuntuEndToEndTests: XCTestCase {

0 commit comments

Comments
 (0)