Skip to content

Commit 95e6329

Browse files
dadachiclaude
andcommitted
Fix SwiftLint line_length in Constants.swift
Extract ProcessInfo.environment into a private static to shorten the domain/scheme/port lines under the 120-char limit. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 9946fbf commit 95e6329

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

NativeAppTemplate/Constants.swift

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,10 @@ enum NativeAppTemplateConstants {
9494

9595
extension String {
9696
#if DEBUG
97-
static let scheme: String = ProcessInfo.processInfo.environment["NATEMPLATE_API_SCHEME"] ?? "https"
98-
static let domain: String = ProcessInfo.processInfo.environment["NATEMPLATE_API_DOMAIN"] ?? "api.nativeapptemplate.com"
99-
static let port: String = ProcessInfo.processInfo.environment["NATEMPLATE_API_PORT"] ?? ""
97+
private static let env = ProcessInfo.processInfo.environment
98+
static let scheme: String = env["NATEMPLATE_API_SCHEME"] ?? "https"
99+
static let domain: String = env["NATEMPLATE_API_DOMAIN"] ?? "api.nativeapptemplate.com"
100+
static let port: String = env["NATEMPLATE_API_PORT"] ?? ""
100101
#else
101102
static let scheme: String = "https"
102103
static let domain: String = "api.nativeapptemplate.com"

0 commit comments

Comments
 (0)