Skip to content

Commit 9718c60

Browse files
award999ahoppen
andauthored
Update Sources/LanguageServerProtocol/SupportTypes/Playground.swift
Co-authored-by: Alex Hoppen <alex@alexhoppen.de>
1 parent be99be8 commit 9718c60

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Sources/LanguageServerProtocol/SupportTypes/Playground.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,7 @@ public struct Playground: ResponseType, Equatable, LSPAnyCodable {
4545
public init?(fromLSPDictionary dictionary: [String: LSPAny]) {
4646
guard
4747
case .string(let id) = dictionary["id"],
48-
case .dictionary(let locationDict) = dictionary["location"],
49-
let location = Location(fromLSPDictionary: locationDict)
48+
let location = Location(fromLSPAny: dictionary["location"])
5049
else {
5150
return nil
5251
}

0 commit comments

Comments
 (0)