Update to pull request #10

The return value of updateJob has been taken into consideration and the if condition has been removed. Based on comments on pull request #10