Skip to content

Commit 12a24d1

Browse files
shivamhwpclaude
andcommitted
refactor(mobile): drop the unused-result suppression on the terminal theme loader
Creation ignores the load result explicitly instead of suppressing the warning on the function. Co-Authored-By: Claude Haiku 5.5 <[email protected]>
1 parent bc09113 commit 12a24d1

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎apps/mobile/modules/t3-terminal/ios/T3TerminalView.swift‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -663,7 +663,8 @@ public final class T3TerminalView: ExpoView, UITextFieldDelegate, UIEditMenuInte
663663
surfaceCreationFailed = true
664664
return
665665
}
666-
loadThemeConfig(into: config)
666+
// Creation proceeds without the file, as before; font_size is also set on the surface config.
667+
_ = loadThemeConfig(into: config)
667668
ghostty_config_finalize(config)
668669
defer { ghostty_config_free(config) }
669670

@@ -954,7 +955,6 @@ public final class T3TerminalView: ExpoView, UITextFieldDelegate, UIEditMenuInte
954955
terminalViewport.backgroundColor = backgroundColorValue
955956
}
956957

957-
@discardableResult
958958
private func loadThemeConfig(into config: ghostty_config_t) -> Bool {
959959
guard let path = writeThemeConfigFile() else { return false }
960960
path.withCString { cString in

0 commit comments

Comments
 (0)