mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Fix clang-tidy and lint travis checks
This commit is contained in:
parent
c44318a253
commit
02111e4961
2 changed files with 2 additions and 1 deletions
|
@ -1913,7 +1913,7 @@ const std::string* Client::getModFile(std::string filename)
|
|||
if (pos == std::string::npos)
|
||||
return nullptr;
|
||||
pos++;
|
||||
auto pos2 = filename.find_first_not_of("/", pos);
|
||||
auto pos2 = filename.find_first_not_of('/', pos);
|
||||
if (pos2 > pos)
|
||||
filename.erase(pos, pos2 - pos);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue