From bd3098faf49eabf718cd7fcae4bba30c2fda2b81 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Mon, 22 Mar 2010 14:59:58 +0000 Subject: 2010-03-22 Tatsuhiro Tsujikawa Code cleanup * src/SleepCommand.cc --- src/SleepCommand.cc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/SleepCommand.cc') diff --git a/src/SleepCommand.cc b/src/SleepCommand.cc index dca19457..78811de1 100644 --- a/src/SleepCommand.cc +++ b/src/SleepCommand.cc @@ -47,9 +47,7 @@ SleepCommand::SleepCommand(cuid_t cuid, DownloadEngine* e, nextCommand(nextCommand), wait(wait) {} SleepCommand::~SleepCommand() { - if(nextCommand) { - delete(nextCommand); - } + delete nextCommand; } bool SleepCommand::execute() { -- cgit