Skip to content

Commit

Permalink
linux: add braces to multi-statement if
Browse files Browse the repository at this point in the history
PR-URL: libuv#750
Reviewed-By: Ben Noordhuis <[email protected]>
Reviewed-By: Saúl Ibarra Corretgé <[email protected]>
  • Loading branch information
kthelgason authored and bnoordhuis committed Mar 4, 2016
1 parent 4c765d7 commit 80d9d86
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/unix/linux-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -602,9 +602,10 @@ int uv_cpu_info(uv_cpu_info_t** cpu_infos, int* count) {
return -ENOMEM;

err = read_models(numcpus, ci);
if (err == 0)
if (err == 0) {
rewind(statfile_fp);
err = read_times(statfile_fp, numcpus, ci);
}

if (fclose(statfile_fp))
if (errno != EINTR && errno != EINPROGRESS)
Expand Down

0 comments on commit 80d9d86

Please sign in to comment.