Skip to content

Commit

Permalink
Lint updates
Browse files Browse the repository at this point in the history
  • Loading branch information
mikenachbaur-okta committed Sep 6, 2024
1 parent 14172ba commit 145153c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ extension Dictionary<String, APIRequestArgument> {
}

@_documentation(visibility: private)
@inlinable public func merging(_ oauth2Parameters: ProvidesOAuth2Parameters?) -> [Key : Value] {
@inlinable public func merging(_ oauth2Parameters: ProvidesOAuth2Parameters?) -> [Key: Value] {

Check failure on line 33 in Sources/AuthFoundation/OAuth2/Internal/ProvidesOAuth2Parameters+Extensions.swift

View workflow job for this annotation

GitHub Actions / SwiftLint

Attributes should be on their own lines in functions and types, but on the same line as variables and imports (attributes)
var result = self
result.merge(oauth2Parameters)
return result
Expand All @@ -39,7 +39,7 @@ extension Dictionary<String, APIRequestArgument> {

extension Dictionary<String, APIRequestArgument>: ProvidesOAuth2Parameters {
@_documentation(visibility: private)
public var additionalParameters: [String : any APIRequestArgument]? {
public var additionalParameters: [String: any APIRequestArgument]? {
self
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ extension DirectAuthenticationFlow.Intent: ProvidesOAuth2Parameters {
}

@_documentation(visibility: private)
public var additionalParameters: [String : any AuthFoundation.APIRequestArgument]? {
public var additionalParameters: [String: any AuthFoundation.APIRequestArgument]? {
switch self {
case .signIn:
return nil
Expand Down

0 comments on commit 145153c

Please sign in to comment.