Removing unnecessary if check for error
Merge pull request #30 from anuchandy/sprint36

Removing unnecessary if check for error