mirror of
https://github.com/kovetskiy/mark.git
synced 2026-03-19 09:07:36 +08:00
GetUserByName made two REST requests without checking the HTTP status codes. A 401/403/500 response would silently be treated as an empty result set and return 'user not found' instead of the real error. Add a status check after each request. FindHomePage had 'StatusNotFound || != StatusOK' — the first clause is always a subset of the second, making it dead code. Simplified to just '!= StatusOK'. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>