mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-04-19 14:00:29 +00:00
macos: swiftlint 'syntactic_sugar' rule
This commit is contained in:
@@ -24,7 +24,6 @@ disabled_rules:
|
||||
- orphaned_doc_comment
|
||||
- shorthand_operator
|
||||
- switch_case_alignment
|
||||
- syntactic_sugar
|
||||
- trailing_semicolon
|
||||
- trailing_whitespace
|
||||
- unneeded_synthesized_initializer
|
||||
|
||||
@@ -736,7 +736,7 @@ extension Ghostty {
|
||||
return try keys.withCStrings { keyCStrings in
|
||||
return try values.withCStrings { valueCStrings in
|
||||
// Create array of ghostty_env_var_s
|
||||
var envVars = Array<ghostty_env_var_s>()
|
||||
var envVars = [ghostty_env_var_s]()
|
||||
envVars.reserveCapacity(environmentVariables.count)
|
||||
for i in 0..<environmentVariables.count {
|
||||
envVars.append(ghostty_env_var_s(
|
||||
|
||||
Reference in New Issue
Block a user