Skip to content

Commit

Permalink
fix: linter errors (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
bouassaba authored Nov 21, 2024
1 parent 3d7c234 commit df20395
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
4 changes: 3 additions & 1 deletion Sources/Screens/Organization/OrganizationSettings.swift
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@ struct OrganizationSettings: View {
NavigationLink {
OrganizationEditName(organizationStore: organizationStore) { updatedOranization in
organizationStore.current = updatedOranization
if let index = organizationStore.entities?.firstIndex(where: { $0.id == updatedOranization.id }) {
if let index = organizationStore.entities?.firstIndex(where: {
$0.id == updatedOranization.id
}) {
organizationStore.entities?[index] = updatedOranization
}
}
Expand Down
8 changes: 7 additions & 1 deletion Sources/Screens/Snapshot/SnapshotStore.swift
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,13 @@ class SnapshotStore: ObservableObject {

private func fetchList(page: Int = 1, size: Int = Constants.pageSize) async throws -> VOSnapshot.List? {
guard let fileID else { return nil }
return try await snapshotClient?.fetchList(.init(fileID: fileID, page: page, size: size, sortBy: .version, sortOrder: .desc))
return try await snapshotClient?.fetchList(.init(
fileID: fileID,
page: page,
size: size,
sortBy: .version,
sortOrder: .desc
))
}

func fetchNext(replace: Bool = false) {
Expand Down
4 changes: 3 additions & 1 deletion Sources/Screens/Workspace/WorkspaceSettings.swift
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,9 @@ struct WorkspaceSettings: View {
NavigationLink {
WorkspaceEditName(workspaceStore: workspaceStore) { updatedWorkspace in
workspaceStore.current = updatedWorkspace
if let index = workspaceStore.entities?.firstIndex(where: { $0.id == updatedWorkspace.id }) {
if let index = workspaceStore.entities?.firstIndex(where: {
$0.id == updatedWorkspace.id
}) {
workspaceStore.entities?[index] = updatedWorkspace
}
}
Expand Down

0 comments on commit df20395

Please sign in to comment.