Skip to content

Commit d0c6e33

Browse files
Apply suggestions from linter review
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent 1613845 commit d0c6e33

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

src/scitokens_internal.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1103,7 +1103,8 @@ std::string configurer::Configuration::get_cache_home() { return *m_cache_home;
11031103
// return stat(dir_path.c_str(), &info) == 0 && (info.st_mode & S_IFDIR);
11041104
// }
11051105

1106-
std::pair<bool, std::string> configurer::Configuration::mkdir_and_parents_if_needed(
1106+
std::pair<bool, std::string>
1107+
configurer::Configuration::mkdir_and_parents_if_needed(
11071108
const std::string dir_path) {
11081109
// SciTokens-cpp already makes assumptions about using Linux file paths,
11091110
// so making that assumption here as well.
@@ -1119,7 +1120,8 @@ std::pair<bool, std::string> configurer::Configuration::mkdir_and_parents_if_nee
11191120
currentLevel += "/" + component;
11201121
result = mkdir(currentLevel.c_str(), mode);
11211122
if ((result < 0) && errno != EEXIST) {
1122-
std::string err_prefix{"There was an error while creating/checking the directory: mkdir error: "};
1123+
std::string err_prefix{"There was an error while creating/checking "
1124+
"the directory: mkdir error: "};
11231125
return std::make_pair(false, err_prefix + strerror(errno));
11241126
}
11251127
}

src/scitokens_internal.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,9 @@ class Configuration {
4949
static std::atomic_int m_next_update_delta;
5050
static std::atomic_int m_expiry_delta;
5151
static std::shared_ptr<std::string> m_cache_home;
52-
//static bool check_dir(const std::string dir_path);
53-
static std::pair<bool, std::string> mkdir_and_parents_if_needed(const std::string dir_path);
52+
// static bool check_dir(const std::string dir_path);
53+
static std::pair<bool, std::string>
54+
mkdir_and_parents_if_needed(const std::string dir_path);
5455
static std::vector<std::string> path_split(const std::string dir_path);
5556
};
5657
} // namespace configurer

0 commit comments

Comments
 (0)