Permalink
Browse files

Code cleanup: used auto

  • Loading branch information...
pbeckingham committed Mar 18, 2018
1 parent 24a68b2 commit ce924349c182bb93f6c2e8324a22cf3ae1659008
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/commands/CmdDiagnostics.cpp
@@ -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" &&

0 comments on commit ce92434

Please sign in to comment.