Skip to content

Commit 23148b3

Browse files
committed
Fixed SwiftLint errors
1 parent dbf88a9 commit 23148b3

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

CodeEdit/Features/Settings/Pages/SourceControlSettings/Models/SourceControlSettings.swift

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ extension SettingsData {
5757
var refreshStatusLocally: Bool = true
5858
/// Indicates whether the application should automatically fetch updates from the server and refresh the status.
5959
var fetchRefreshServerStatus: Bool = true
60-
/// Indicates whether new files should be automatically added and removed files should be removed from version control.
60+
/// Indicates whether new and deleted files should be automatically staged for commit.
6161
var addRemoveAutomatically: Bool = true
6262
/// Indicates whether the application should automatically select files to commit.
6363
var selectFilesToCommit: Bool = true
@@ -76,7 +76,10 @@ extension SettingsData {
7676
/// Explicit decoder init for setting default values when key is not present in `JSON`
7777
init(from decoder: Decoder) throws {
7878
let container = try decoder.container(keyedBy: CodingKeys.self)
79-
self.sourceControlIsEnabled = try container.decodeIfPresent(Bool.self, forKey: .sourceControlIsEnabled) ?? true
79+
self.sourceControlIsEnabled = try container.decodeIfPresent(
80+
Bool.self,
81+
forKey: .sourceControlIsEnabled
82+
) ?? true
8083
self.refreshStatusLocally = try container.decodeIfPresent(Bool.self, forKey: .refreshStatusLocally) ?? true
8184
self.fetchRefreshServerStatus = try container.decodeIfPresent(
8285
Bool.self,

0 commit comments

Comments
 (0)