Skip to content
This repository has been archived by the owner on Jun 5, 2024. It is now read-only.

Commit

Permalink
Correct minor useless code
Browse files Browse the repository at this point in the history
  • Loading branch information
godbout committed Apr 3, 2017
1 parent 9cdb137 commit fb0dc3a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions commands/AlfredTime.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public function stopRunningTimer()

foreach ($this->activatedServices() as $service) {
$functionName = 'stop' . ucfirst($service) . 'Timer';
if (call_user_func_array(['AlfredTime', $functionName], []) === true) {
if (call_user_func(['AlfredTime', $functionName]) === true) {
$atLeastOneServiceStopped = true;
}
$message .= $this->getLastMessage() . "\r\n";
Expand Down Expand Up @@ -187,7 +187,7 @@ private function deleteTimer()

foreach ($this->activatedServices() as $service) {
$functionName = 'delete' . ucfirst($service) . 'Timer';
if (call_user_func_array(['AlfredTime', $functionName], []) === true) {
if (call_user_func(['AlfredTime', $functionName]) === true) {
$this->config['workflow']['timer_' . $service . '_id'] = null;
$atLeastOneTimerDeleted = true;
}
Expand Down

0 comments on commit fb0dc3a

Please sign in to comment.