Skip to content

Commit

Permalink
Update src/logging.cc
Browse files Browse the repository at this point in the history
Co-authored-by: Sergiu Deitsch <[email protected]>
  • Loading branch information
yangzhg and sergiud committed Aug 4, 2022
1 parent 31e601b commit 6c8248b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/logging.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1168,7 +1168,7 @@ void LogFileObject::CheckHistoryFileNum() {
DIR *dp;

const vector<string> &log_dirs = GetLoggingDirectories();
if (log_dirs.size() < 1) return;
if (log_dirs.empty()) return;

// list file in log dir
dp = opendir(log_dirs[0].c_str());
Expand Down

0 comments on commit 6c8248b

Please sign in to comment.