We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e8763aa commit ead3381Copy full SHA for ead3381
Source/SwiftLintCore/Helpers/Reachability.swift
@@ -1,4 +1,4 @@
1
-#if !os(Linux) && !os(Windows)
+#if os(macOS)
2
import SystemConfiguration
3
#endif
4
Source/swiftlint/Commands/Rules.swift
@@ -155,7 +155,7 @@ private extension TextTable {
155
private struct Terminal {
156
static func currentWidth() -> Int {
157
#if os(Windows)
158
- var csbi: CONSOLE_SCREEN_BUFFER_INFO = CONSOLE_SCREEN_BUFFER_INFO()
+ var csbi = CONSOLE_SCREEN_BUFFER_INFO()
159
guard GetConsoleScreenBufferInfo(GetStdHandle(STD_OUTPUT_HANDLE), &csbi) else {
160
return 80
161
}
0 commit comments