mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-09-09 18:50:39 +02:00
Code cleanup: used auto
This commit is contained in:
parent
d312775f99
commit
b2f5cd0b89
1 changed files with 2 additions and 2 deletions
|
@ -329,7 +329,7 @@ int CmdDiagnostics::execute (std::string& output)
|
||||||
Path p (hook);
|
Path p (hook);
|
||||||
if (! p.is_directory ())
|
if (! p.is_directory ())
|
||||||
{
|
{
|
||||||
std::string name = p.name ();
|
auto name = p.name ();
|
||||||
|
|
||||||
if (p.executable () &&
|
if (p.executable () &&
|
||||||
(name.substr (0, 6) == "on-add" ||
|
(name.substr (0, 6) == "on-add" ||
|
||||||
|
@ -358,7 +358,7 @@ int CmdDiagnostics::execute (std::string& output)
|
||||||
Path p (hook);
|
Path p (hook);
|
||||||
if (! p.is_directory ())
|
if (! p.is_directory ())
|
||||||
{
|
{
|
||||||
std::string name = p.name ();
|
auto name = p.name ();
|
||||||
|
|
||||||
if (! p.executable () ||
|
if (! p.executable () ||
|
||||||
(name.substr (0, 6) != "on-add" &&
|
(name.substr (0, 6) != "on-add" &&
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue