Commit aa78fce0 authored by yinqiwen's avatar yinqiwen

code style fix

parent d3a9ea6b
...@@ -44,8 +44,7 @@ class DirReaderUnix { ...@@ -44,8 +44,7 @@ class DirReaderUnix {
if (IGNORE_EINTR(close(fd_))) if (IGNORE_EINTR(close(fd_)))
RAW_LOG(ERROR, "Failed to close directory handle"); RAW_LOG(ERROR, "Failed to close directory handle");
} }
if(NULL != dir_) if(NULL != dir_){
{
closedir(dir_); closedir(dir_);
} }
} }
...@@ -57,8 +56,7 @@ class DirReaderUnix { ...@@ -57,8 +56,7 @@ class DirReaderUnix {
// Move to the next entry returning false if the iteration is complete. // Move to the next entry returning false if the iteration is complete.
bool Next() { bool Next() {
int err = readdir_r(dir_,&entry_, &current_); int err = readdir_r(dir_,&entry_, &current_);
if(0 != err || NULL == current_) if(0 != err || NULL == current_){
{
return false; return false;
} }
return true; return true;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment