Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
Signed-off-by: Tomasz Pietrek <tomasz@nats.io>
  • Loading branch information
Jarema committed Apr 30, 2024
1 parent 31c80ca commit 78530d7
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 5 deletions.
1 change: 0 additions & 1 deletion Sources/JetStream/context.swift
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ extension JetStreamContext {
message, subject: "\(self.prefix).\(subject)", timeout: self.timeout)

let decoder = JSONDecoder()
// maybe empty is ok if the response type is nil and we can skip this check?
guard let payload = response.payload else {
throw JetStreamRequestError("empty response payload")
}
Expand Down
4 changes: 0 additions & 4 deletions Sources/JetStream/errors.swift
Original file line number Diff line number Diff line change
Expand Up @@ -532,7 +532,3 @@ public enum Response<T: Codable>: Codable {
}
}
}

func test() {
// JetStreamError(code: 400, errorCode: ErrorCode.accountResourcesExceeded, description: nil)
}

0 comments on commit 78530d7

Please sign in to comment.