From 54daf1d8e9c376afa4cfad83505a4910010d6b35 Mon Sep 17 00:00:00 2001 From: Jacob Date: Wed, 2 Oct 2024 18:42:41 +0100 Subject: [PATCH] Manually fix remaining lints --- Sources/MobileSdk/Credential.swift | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/Sources/MobileSdk/Credential.swift b/Sources/MobileSdk/Credential.swift index b620fd3..5c6027b 100644 --- a/Sources/MobileSdk/Credential.swift +++ b/Sources/MobileSdk/Credential.swift @@ -23,7 +23,8 @@ extension Mdoc { self.jsonEncodedDetailsInternal(containing: nil) } - /// Access the specified elements in the mdoc, ignoring namespaces and missing elements that cannot be encoded as JSON. + /// Access the specified elements in the mdoc, ignoring namespaces and missing elements that cannot be encoded as + /// JSON. public func jsonEncodedDetails(containing elementIdentifiers: [String]) -> [String: GenericJSON] { self.jsonEncodedDetailsInternal(containing: elementIdentifiers) } @@ -75,8 +76,7 @@ extension JwtVc { /// Access the specified claims from the W3C VCDM credential (not including the JWT envelope). public func credentialClaims(containing claimNames: [String]) -> [String: GenericJSON] { - self.credentialClaims().filter { - (key, _) in + self.credentialClaims().filter { (key, _) in claimNames.contains(key) } } @@ -103,8 +103,7 @@ extension JsonVc { /// Access the specified claims from the W3C VCDM credential. public func credentialClaims(containing claimNames: [String]) -> [String: GenericJSON] { - self.credentialClaims().filter { - (key, _) in + self.credentialClaims().filter { (key, _) in claimNames.contains(key) } }