Minor. In similar situations (for example when doing stat, rename, ...), we have assigned the result of the function before if. For example:

```
mkdirResult = pg_mkdir_p(cstoreDirectoryPath->data, S_IRWXU);
if (mkdirResult < 0)
{
  ...
}
```