Skip to content

Commit 5ee6df3

Browse files
authored
Fix Trailing Whitespace
1 parent 32035f5 commit 5ee6df3

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,10 @@ extension GitClient {
4242
.map { line -> GitCommit in
4343
let parameters = line.components(separatedBy: "¦")
4444
let infoRef = parameters[safe: 9]
45-
45+
4646
var ref = ""
4747
var tag = ""
48-
48+
4949
if let infoRef = infoRef {
5050
if infoRef.contains("tag:") {
5151
tag = infoRef.components(separatedBy: "tag:")[1].trimmingCharacters(in: .whitespaces)

CodeEdit/Features/NavigatorArea/SourceControlNavigator/History/Views/CommitDetailsHeaderView.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,12 +101,12 @@ struct CommitDetailsHeaderView: View {
101101
.padding(.horizontal, 16)
102102

103103
Divider()
104-
104+
105105
Text(commitDetails())
106106
.fontWeight(.bold)
107107
.padding(.horizontal, 16)
108108
.frame(alignment: .leading)
109-
109+
110110
if !commit.body.isEmpty {
111111
Text(commit.body)
112112
.padding(.horizontal, 16)

CodeEdit/Features/NavigatorArea/SourceControlNavigator/History/Views/CommitListItemView.swift

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,20 +10,20 @@ import SwiftUI
1010
struct CommitListItemView: View {
1111

1212
var commit: GitCommit
13-
13+
1414
private var defaultAvatar: some View {
1515
Image(systemName: "person.crop.circle.fill")
1616
.symbolRenderingMode(.hierarchical)
1717
.resizable()
1818
.foregroundColor(avatarColor)
1919
.frame(width: 32, height: 32)
2020
}
21-
21+
2222
private func generateAvatarHash() -> String {
2323
let hash = commit.authorEmail.md5(trim: true, caseSensitive: false)
2424
return "\(hash)?d=404&s=64" // send 404 if no image available, image size 64x64 (32x32 @2x)
2525
}
26-
26+
2727
private var avatarColor: Color {
2828
let hash = generateAvatarHash().hash
2929
switch hash % 12 {
@@ -68,7 +68,7 @@ struct CommitListItemView: View {
6868
Text(commit.author)
6969
.fontWeight(.bold)
7070
.font(.system(size: 11))
71-
71+
7272
if !commit.ref.isEmpty {
7373
HStack {
7474
Image.branch
@@ -85,7 +85,7 @@ struct CommitListItemView: View {
8585
)
8686
.padding(.trailing, 2.5)
8787
}
88-
88+
8989
if !commit.tag.isEmpty {
9090
HStack {
9191
Image.breakpoint
@@ -102,7 +102,7 @@ struct CommitListItemView: View {
102102
)
103103
.padding(.trailing, 2.5)
104104
}
105-
105+
106106
Text("\(commit.message) \(commit.body)")
107107
.font(.system(size: 11))
108108
.lineLimit(2)

0 commit comments

Comments
 (0)