@@ -3,11 +3,15 @@ import Foundation
33import WebKit
44
55private final class DashboardWindowContentView : NSView {
6- override var mouseDownCanMoveWindow : Bool { true }
6+ override var mouseDownCanMoveWindow : Bool {
7+ true
8+ }
79}
810
911private final class DashboardWindowDragRegionView : NSView {
10- override var mouseDownCanMoveWindow : Bool { true }
12+ override var mouseDownCanMoveWindow : Bool {
13+ true
14+ }
1115
1216 override func mouseDown( with event: NSEvent ) {
1317 self . window? . performDrag ( with: event)
@@ -275,7 +279,7 @@ final class DashboardWindowController: NSWindowController, WKNavigationDelegate,
275279
276280 private func showLoadFailure( _ error: Error ) {
277281 let nsError = error as NSError
278- if nsError. domain == NSURLErrorDomain && nsError. code == NSURLErrorCancelled { return }
282+ if nsError. domain == NSURLErrorDomain, nsError. code == NSURLErrorCancelled { return }
279283 dashboardWindowLogger. error (
280284 " dashboard load failed url= \( self . currentURL. absoluteString, privacy: . public) error= \( error. localizedDescription, privacy: . public) " )
281285 let html = Self . failureHTML ( url: self . currentURL, message: error. localizedDescription)
@@ -324,8 +328,8 @@ final class DashboardWindowController: NSWindowController, WKNavigationDelegate,
324328 <body>
325329 <main>
326330 <h1>Dashboard unavailable</h1>
327- <p> \( Self . htmlEscape ( message) ) </p>
328- <code> \( Self . htmlEscape ( url. absoluteString) ) </code>
331+ <p> \( self . htmlEscape ( message) ) </p>
332+ <code> \( self . htmlEscape ( url. absoluteString) ) </code>
329333 </main>
330334 </body>
331335 </html>
0 commit comments