Skip to content

Commit

Permalink
Fix clang-tidy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
umegane committed Aug 29, 2024
1 parent f90b083 commit 3a79df7
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/limestone/rotation_task.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
#include <limestone/logging.h>

#include <glog/logging.h>
#include <limestone/logging.h>
#include "logging_helper.h"

#include <limestone/api/rotation_task.h>
Expand Down Expand Up @@ -73,11 +72,10 @@ void rotation_task::rotate() {
if (error == boost::system::errc::no_such_file_or_directory || !result) {
LOG_LP(INFO) << "File does not exist, skipping: " << lc->file_path();
continue;
} else {
// For any other errors
LOG_LP(ERROR) << "Failed to check if file exists: " << lc->file_path() << ", error_code: " << error.message();
throw std::runtime_error("Failed to check if file exists: " + lc->file_path().string());
}
// For any other errors
LOG_LP(ERROR) << "Failed to check if file exists: " << lc->file_path() << ", error_code: " << error.message();
throw std::runtime_error("Failed to check if file exists: " + lc->file_path().string());
}

// The following code may seem necessary at first glance, but there is a possibility
Expand Down

0 comments on commit 3a79df7

Please sign in to comment.