Skip to content

Commit 7efc129

Browse files
committed
fix(Swift-5.9): Remove trailing commas after last args
1 parent 914418f commit 7efc129

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Sources/KeyPathMapper/Extensions/KeyPathMapper+Hashable.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import Hashed
33

44
extension KeyPathMapper {
55
public subscript(
6-
hashedBy hash: AnyHashable,
6+
hashedBy hash: AnyHashable
77
) -> KeyPathMapper<Hashed<Value>> {
88
get { .init(.init(value, by: .uncheckedSendable(hash))) }
99
set { self.value = newValue.value.wrappedValue }

Sources/KeyPathMapper/Extensions/KeyPathMapper+Optional.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ extension KeyPathMapper {
1313
extension KeyPathMapper where Value: _OptionalProtocol {
1414
public subscript(
1515
unwrappedWith defaultValue: Value.Wrapped,
16-
aggressive aggressive: Bool = false,
16+
aggressive aggressive: Bool = false
1717
) -> KeyPathMapper<Value.Wrapped> {
1818
get { .init(self.value.__marker_value ?? defaultValue) }
1919
set {
@@ -26,7 +26,7 @@ extension KeyPathMapper where Value: _OptionalProtocol {
2626
@inlinable
2727
public subscript<T>(
2828
unwrappedWith defaultValue: Hashed<T>,
29-
aggressive aggressive: Bool = false,
29+
aggressive aggressive: Bool = false
3030
) -> KeyPathMapper<T> where Value == Optional<T> {
3131
get { self[unwrappedWith: defaultValue.wrappedValue] }
3232
set { self[unwrappedWith: defaultValue.wrappedValue, aggressive: aggressive] = newValue }

0 commit comments

Comments
 (0)