Skip to content

Commit 7e89528

Browse files
authored
Fix lint
1 parent a52ff01 commit 7e89528

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

CodeEdit/Features/Git/Client/GitClient+CommitHistory.swift

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ extension GitClient {
1414
/// - maxCount: Maximum amount of entries to get
1515
/// - fileLocalPath: Optional path of file to get history for
1616
/// - Returns: Array of git commits
17+
// swiftlint:disable function_body_length
1718
func getCommitHistory(
1819
branchName: String? = nil,
1920
maxCount: Int? = nil,
@@ -51,7 +52,9 @@ extension GitClient {
5152
refs = infoRef.split(separator: ",").compactMap {
5253
var element = String($0)
5354
if element.contains("origin/HEAD") { return nil }
54-
if element.contains("HEAD -> ") { element = element.replacingOccurrences(of: "HEAD -> ", with: "") }
55+
if element.contains("HEAD -> ") {
56+
element = element.replacingOccurrences(of: "HEAD -> ", with: "")
57+
}
5558
return element.trimmingCharacters(in: .whitespaces)
5659
}
5760
}

0 commit comments

Comments
 (0)