aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--docs/CODE_STYLE.md12
1 files changed, 5 insertions, 7 deletions
diff --git a/docs/CODE_STYLE.md b/docs/CODE_STYLE.md
index d77fc4476..033a33bce 100644
--- a/docs/CODE_STYLE.md
+++ b/docs/CODE_STYLE.md
@@ -107,13 +107,11 @@ Rather than test a conditional value such as a bool against TRUE or FALSE, a
pointer against NULL or != NULL and an int against zero or not zero in
if/while conditions we prefer:
-CURLcode result = CURLE_OK;
-
-result = do_something();
-if(!result) {
- /* something went wrong */
- return result;
-}
+ result = do_something();
+ if(!result) {
+ /* something went wrong */
+ return result;
+ }
## No assignments in conditions