Remove useless code

kiamlaluno - January 30, 2009 - 15:46
Project:Poormanscron
Version:6.x-1.x-dev
Component:Code
Category:task
Priority:normal
Assigned:Unassigned
Status:closed
Description

In poormanscron_exit() $message is initialized to NULL but it then immediately set to a string, basing on the result returned by drupal_run_cron().
Initializing the variable to NULL is useless.

#1

Dave Reid - April 20, 2009 - 17:28
Status:active» needs review

Patch attached for review.

AttachmentSize
366757-poormanscron-D6.patch 633 bytes

#2

kiamlaluno - April 20, 2009 - 18:02

The patch seems to work.

#3

Rob Loach - May 6, 2009 - 05:07
Status:needs review» fixed

Committed, thanks! http://drupal.org/cvs?commit=207516

#4

System Message - May 20, 2009 - 05:10
Status:fixed» closed

Automatically closed -- issue fixed for 2 weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.