Skip to content

Commit

Permalink
fix: isChessDotComUser function indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
AmanMenda committed May 3, 2024
1 parent f11f6c0 commit fe96af2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Sources/App/Logic.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,16 +26,16 @@ extractInt(const Value& jsonObject, const std::string& fieldName)

namespace Stuckfish
{
bool
Logic::IsChessDotComUser(const std::string& username)
{
bool
Logic::IsChessDotComUser(const std::string& username)
{
std::string url = "https://api.chess.com/pub/player/" + to_lower(username);
cpr::Response res = cpr::Get(cpr::Url{ url });

if (res.status_code == cpr::status::HTTP_OK)
return true;
return false;
}
}

void
Logic::GetInfosFromListOfGamesPlayed(const std::string& username, const Document& doc)
Expand Down

0 comments on commit fe96af2

Please sign in to comment.