MCPcopy Index your code
hub / github.com/GlenDC/github-rust / check_status_code

Function check_status_code

src/error.rs:220–222  ·  view source on GitHub ↗

Simplistic function internally used to check if a returned status code is positive. Which means that the request was succesful.

(code: u32)

Source from the content-addressed store, hash-verified

218/// if a returned status code is positive.
219/// Which means that the request was succesful.
220pub fn check_status_code(code: u32) -> bool {
221 code == STATUS_OK
222}

Callers 1

getFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected