Skip to content

Commit 02111e4

Browse files
committedNov 11, 2019
Fix clang-tidy and lint travis checks
1 parent c44318a commit 02111e4

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed
 

‎src/client/client.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1913,7 +1913,7 @@ const std::string* Client::getModFile(std::string filename)
19131913
if (pos == std::string::npos)
19141914
return nullptr;
19151915
pos++;
1916-
auto pos2 = filename.find_first_not_of("/", pos);
1916+
auto pos2 = filename.find_first_not_of('/', pos);
19171917
if (pos2 > pos)
19181918
filename.erase(pos, pos2 - pos);
19191919

‎util/travis/clang-format-whitelist.txt

+1
Original file line numberDiff line numberDiff line change
@@ -349,6 +349,7 @@ src/script/cpp_api/s_server.h
349349
src/script/lua_api/l_areastore.cpp
350350
src/script/lua_api/l_base.cpp
351351
src/script/lua_api/l_base.h
352+
src/script/lua_api/l_client.cpp
352353
src/script/lua_api/l_craft.cpp
353354
src/script/lua_api/l_craft.h
354355
src/script/lua_api/l_env.cpp

0 commit comments

Comments
 (0)
Please sign in to comment.