From 9d06f66318998c42c9a4505f9b4f161028e3ac93 Mon Sep 17 00:00:00 2001 From: Ian Maia Date: Fri, 23 Feb 2024 18:10:16 +0100 Subject: [PATCH] Fix Package.swift spacing --- Package.swift | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Package.swift b/Package.swift index 5a2ae7d..4b43ade 100644 --- a/Package.swift +++ b/Package.swift @@ -68,18 +68,18 @@ func loadSwiftLintVersion() -> Version { .appendingPathComponent(".swiftlint.yml")) else { fatalError("Failed to read YAML file.") } - + guard let versionLine = yamlString.components(separatedBy: .newlines) .first(where: { $0.contains("swiftlint_version") }) else { fatalError("SwiftLint version not found in YAML file.") } - + // assumes the format `swiftlint_version: ` guard let version = Version(versionLine.components(separatedBy: ":") .last? .trimmingCharacters(in: .whitespaces) ?? "") else { fatalError("Failed to extract SwiftLint version.") } - + return version }