Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix clang-tidy and lint travis checks
  • Loading branch information
sfan5 committed Nov 11, 2019
1 parent c44318a commit 02111e4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/client/client.cpp
Expand Up @@ -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);

Expand Down
1 change: 1 addition & 0 deletions util/travis/clang-format-whitelist.txt
Expand Up @@ -349,6 +349,7 @@ src/script/cpp_api/s_server.h
src/script/lua_api/l_areastore.cpp
src/script/lua_api/l_base.cpp
src/script/lua_api/l_base.h
src/script/lua_api/l_client.cpp
src/script/lua_api/l_craft.cpp
src/script/lua_api/l_craft.h
src/script/lua_api/l_env.cpp
Expand Down

0 comments on commit 02111e4

Please sign in to comment.