Optimize an if statement

Optimized the if statment in postSend() method in default case
Merge pull request #208 from mirovit/patch-1

Optimize an if statement