Code cleanup: used auto

This commit is contained in:
Paul Beckingham 2018-03-18 11:10:13 -04:00
parent 24a68b2ad8
commit ce924349c1

View file

@ -329,7 +329,7 @@ int CmdDiagnostics::execute (std::string& output)
Path p (hook);
if (! p.is_directory ())
{
std::string name = p.name ();
auto name = p.name ();
if (p.executable () &&
(name.substr (0, 6) == "on-add" ||
@ -358,7 +358,7 @@ int CmdDiagnostics::execute (std::string& output)
Path p (hook);
if (! p.is_directory ())
{
std::string name = p.name ();
auto name = p.name ();
if (! p.executable () ||
(name.substr (0, 6) != "on-add" &&