Loading docs/CODE_STYLE.md +5 −7 Original line number Original line Diff line number Diff line Loading @@ -107,8 +107,6 @@ 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 pointer against NULL or != NULL and an int against zero or not zero in if/while conditions we prefer: if/while conditions we prefer: CURLcode result = CURLE_OK; result = do_something(); result = do_something(); if(!result) { if(!result) { /* something went wrong */ /* something went wrong */ Loading Loading
docs/CODE_STYLE.md +5 −7 Original line number Original line Diff line number Diff line Loading @@ -107,8 +107,6 @@ 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 pointer against NULL or != NULL and an int against zero or not zero in if/while conditions we prefer: if/while conditions we prefer: CURLcode result = CURLE_OK; result = do_something(); result = do_something(); if(!result) { if(!result) { /* something went wrong */ /* something went wrong */ Loading