Skip to content

Commit

Permalink
fix: Swift Lint
Browse files Browse the repository at this point in the history
Signed-off-by: Fabrizio Demaria <[email protected]>
  • Loading branch information
fabriziodemaria committed Sep 5, 2024
1 parent 4dac6c6 commit 0ed88c5
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 22 deletions.
4 changes: 2 additions & 2 deletions Sources/OpenFeature/OpenFeatureClient.swift
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,9 @@ extension OpenFeatureClient {
) -> FlagEvaluationDetails<T> {
var details = FlagEvaluationDetails(flagKey: key, value: defaultValue)

if (openFeatureApi.getProviderStatus() == .fatal) {
if openFeatureApi.getProviderStatus() == .fatal {
details.errorCode = .providerFatal
details.errorMessage = "Fatal error reported by the Provider" // TODO Improve this message with error details
details.errorMessage = "Fatal error reported by the Provider" // TODO Improve this message with error details

Check warning on line 75 in Sources/OpenFeature/OpenFeatureClient.swift

View workflow job for this annotation

GitHub Actions / SwiftLint

Line Length Violation: Line should be 120 characters or less; currently it has 122 characters (line_length)
details.reason = Reason.error.rawValue
return details
}
Expand Down
1 change: 0 additions & 1 deletion Sources/OpenFeature/Provider/ProviderStatus.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,3 @@ public enum ProviderStatus: String, CaseIterable {
case fatal = "PROVIDER_FATAL"
case reconciling = "PROVIDER_RECONCILING"
}

2 changes: 1 addition & 1 deletion Tests/OpenFeatureTests/Helpers/ThrowingProvider.swift
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Foundation
import Combine
import Foundation

@testable import OpenFeature

Expand Down
36 changes: 18 additions & 18 deletions Tools/SwiftFormat/Package.resolved
Original file line number Diff line number Diff line change
Expand Up @@ -6,44 +6,44 @@
"repositoryURL": "https://github.com/apple/swift-argument-parser.git",
"state": {
"branch": null,
"revision": "9f39744e025c7d377987f30b03770805dcb0bcd1",
"version": "1.1.4"
"revision": "41982a3656a71c768319979febd796c6fd111d5c",
"version": "1.5.0"
}
},
{
"package": "swift-format",
"repositoryURL": "https://github.com/apple/swift-format",
"package": "cmark-gfm",
"repositoryURL": "https://github.com/apple/swift-cmark.git",
"state": {
"branch": null,
"revision": "5f184220d032a019a63df457cdea4b9c8241e911",
"version": "0.50700.1"
"revision": "3bc2f3e25df0cecc5dc269f7ccae65d0f386f06a",
"version": "0.4.0"
}
},
{
"package": "SwiftSyntax",
"repositoryURL": "https://github.com/apple/swift-syntax",
"package": "swift-format",
"repositoryURL": "https://github.com/apple/swift-format",
"state": {
"branch": null,
"revision": "72d3da66b085c2299dd287c2be3b92b5ebd226de",
"version": "0.50700.1"
"revision": "7996ac678197d293f6c088a1e74bb778b4e10139",
"version": "510.1.0"
}
},
{
"package": "swift-system",
"repositoryURL": "https://github.com/apple/swift-system.git",
"package": "swift-markdown",
"repositoryURL": "https://github.com/apple/swift-markdown.git",
"state": {
"branch": null,
"revision": "836bc4557b74fe6d2660218d56e3ce96aff76574",
"version": "1.1.1"
"revision": "4aae40bf6fff5286e0e1672329d17824ce16e081",
"version": "0.4.0"
}
},
{
"package": "swift-tools-support-core",
"repositoryURL": "https://github.com/apple/swift-tools-support-core.git",
"package": "swift-syntax",
"repositoryURL": "https://github.com/apple/swift-syntax",
"state": {
"branch": null,
"revision": "4f07be3dc201f6e2ee85b6942d0c220a16926811",
"version": "0.2.7"
"revision": "2bc86522d115234d1f588efe2bcb4ce4be8f8b82",
"version": "510.0.3"
}
}
]
Expand Down

0 comments on commit 0ed88c5

Please sign in to comment.