Browse Source

Remove useless braces

Apply coding style rules: remove braces around 1-statement block.
develop
Damien Goutte-Gattat 4 years ago
parent
commit
780e723b7e
  1. 3
      src/scheme-file.c

3
src/scheme-file.c

@ -41,9 +41,8 @@ gfsec_scheme_file_get_file(gfsec_scheme_t scheme,
if ( authority && *authority && strcmp(authority, "localhost") != 0 )
return GFSEC_SCHEME_STATUS_ERROR;
if ( (*buffer = read_file(path, len, GFSEC_SECRET_MAX_SIZE)) ) {
if ( (*buffer = read_file(path, len, GFSEC_SECRET_MAX_SIZE)) )
return GFSEC_SCHEME_STATUS_SUCCESS;
}
else
return GFSEC_SCHEME_STATUS_ERROR;
}

Loading…
Cancel
Save