From bd03b1967972df625bab8741c288b76e36ea1c59 Mon Sep 17 00:00:00 2001 From: Qwerasd Date: Fri, 8 Mar 2024 13:24:01 -0500 Subject: [PATCH] style --- macos/Sources/Ghostty/SurfaceView_AppKit.swift | 3 +-- macos/Sources/Helpers/NSPasteboard+Extension.swift | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/macos/Sources/Ghostty/SurfaceView_AppKit.swift b/macos/Sources/Ghostty/SurfaceView_AppKit.swift index 1a526971f..9effc33ac 100644 --- a/macos/Sources/Ghostty/SurfaceView_AppKit.swift +++ b/macos/Sources/Ghostty/SurfaceView_AppKit.swift @@ -1041,8 +1041,7 @@ extension Ghostty.SurfaceView: NSServicesMenuRequestor { } func readSelection(from pboard: NSPasteboard) -> Bool { - guard let str = pboard.getOpinionatedStringContents() - else { return false } + guard let str = pboard.getOpinionatedStringContents() else { return false } let len = str.utf8CString.count if (len == 0) { return true } diff --git a/macos/Sources/Helpers/NSPasteboard+Extension.swift b/macos/Sources/Helpers/NSPasteboard+Extension.swift index 2624f89f6..b1755fea0 100644 --- a/macos/Sources/Helpers/NSPasteboard+Extension.swift +++ b/macos/Sources/Helpers/NSPasteboard+Extension.swift @@ -7,8 +7,7 @@ extension NSPasteboard { /// - Tries to get any string from the pasteboard. /// If all of the above fail, returns None. func getOpinionatedStringContents() -> String? { - let file = self.string(forType: .fileURL) - if let file = file { + if let file = self.string(forType: .fileURL) { if let path = NSURL(string: file)?.path { return path }