Removed redundant code

Removed a line of redundant code from the first `if` in `curlPost()`.

(first pull request ever, please don't shot me.)