Skip to content

Commit ead3381

Browse files
Apply suggestions from code review
Co-authored-by: Danny Mösch <[email protected]>
1 parent e8763aa commit ead3381

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Source/SwiftLintCore/Helpers/Reachability.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#if !os(Linux) && !os(Windows)
1+
#if os(macOS)
22
import SystemConfiguration
33
#endif
44

Source/swiftlint/Commands/Rules.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ private extension TextTable {
155155
private struct Terminal {
156156
static func currentWidth() -> Int {
157157
#if os(Windows)
158-
var csbi: CONSOLE_SCREEN_BUFFER_INFO = CONSOLE_SCREEN_BUFFER_INFO()
158+
var csbi = CONSOLE_SCREEN_BUFFER_INFO()
159159
guard GetConsoleScreenBufferInfo(GetStdHandle(STD_OUTPUT_HANDLE), &csbi) else {
160160
return 80
161161
}

0 commit comments

Comments
 (0)