Skip to content

Commit 9dc9713

Browse files
chore: comment refactoring
1 parent f00a88f commit 9dc9713

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/Web3Core/EthereumNetwork/Request/APIRequest+UtilityTypes.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ struct RequestBody: Encodable {
4646
}
4747

4848
public var encodedBody: Data {
49-
// this is safe to force try this here
50-
// Because request must failed to compile if it not conformable with `Encodable` protocol
49+
// Safe to use force-try because request will fail to
50+
// compile if it's not conforming to the `Encodable` protocol.
5151
return try! JSONEncoder().encode(self)
5252
}
5353
}

0 commit comments

Comments
 (0)