Skip to content

Commit

Permalink
chore: delete useless characters at the end of the version number
Browse files Browse the repository at this point in the history
  • Loading branch information
Lesords committed Jun 14, 2024
1 parent d7d51a0 commit e5e6894
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/ipc/src/utils_device.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,8 @@ int queryDeviceInfo(HttpRequest* req, HttpResponse* resp)
os = os_version.substr(0, pos);
version = os_version.substr(pos + 1);
}
if (os_version.back() == '\n') {
os_version.erase(os_version.size() - 1);
if (version.back() == '\n') {
version.erase(version.size() - 1);
}

std::string ch_url = readFile(PATH_UPGRADE_URL);
Expand Down

0 comments on commit e5e6894

Please sign in to comment.