fixed missing returns
Merge pull request #5 from SonarBeserk/master

fixed missing returns