Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#64)
Browse files Browse the repository at this point in the history
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
pre-commit-ci[bot] authored Jan 8, 2024
1 parent f6030df commit c05fa5c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
repos:
- repo: https://github.com/nicklockwood/SwiftFormat
rev: 0.52.11
rev: 0.53.0
hooks:
- id: swiftformat
1 change: 1 addition & 0 deletions Sources/XConfigs/Models/SectionItemsModel.swift
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ extension SectionItemsModel: Equatable {

#if canImport(UIKit)
import UIKit

extension Sequence {
@available(iOS 13.0, *)
func snapshot<Section: Hashable, Item: Hashable>() -> NSDiffableDataSourceSnapshot<Section, Item> where Element == SectionItemsModel<Section, Item> {
Expand Down
4 changes: 2 additions & 2 deletions Sources/XConfigs/UseCases/XConfigUseCase.swift
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ public class XConfigUseCase {
/// Reset the store (needed for the in-app modification).
func reset() {
guard isInAppModificationEnabled else { return }
getConfigs().forEach {
keyValueStore?.remove(key: $0.configKey)
for getConfig in getConfigs() {
keyValueStore?.remove(key: getConfig.configKey)
}
}
}

0 comments on commit c05fa5c

Please sign in to comment.