1
0
Fork 0
forked from lix-project/lix

revert libutil change

This commit is contained in:
Jude Taylor 2015-10-21 14:40:35 -07:00
parent 992cda1b11
commit af1218a86a

View file

@ -167,11 +167,10 @@ string baseNameOf(const Path & path)
bool isInDir(const Path & path, const Path & dir)
{
return dir == "/"
|| (path[0] == '/'
&& string(path, 0, dir.size()) == dir
&& path.size() >= dir.size() + 2
&& path[dir.size()] == '/');
return path[0] == '/'
&& string(path, 0, dir.size()) == dir
&& path.size() >= dir.size() + 2
&& path[dir.size()] == '/';
}