Skip to content

Commit 830b3ac

Browse files
Apply suggestions from cpp linter
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent 8ce1e64 commit 830b3ac

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

src/scitokens_internal.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -577,12 +577,13 @@ std::string normalize_absolute_path(const std::string &path) {
577577

578578
} // namespace
579579
//
580-
static std::unordered_map<std::string, jwt::claim> json_to_claim_map(const picojson::object &json) {
580+
static std::unordered_map<std::string, jwt::claim>
581+
json_to_claim_map(const picojson::object &json) {
581582
std::unordered_map<std::string, jwt::claim> m;
582-
for (const auto &[name, value]: json) {
583+
for (const auto &[name, value] : json) {
583584
m.emplace(name, jwt::claim(value));
584585
}
585-
return m; //nvro
586+
return m; // nvro
586587
}
587588

588589
void SciToken::deserialize(const std::string &data,

src/scitokens_internal.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,8 @@ class SciTokenKey {
156156
: m_kid(key_id), m_name(algorithm), m_public(public_contents),
157157
m_private(private_contents) {}
158158

159-
std::string serialize(jwt::builder<jwt::default_clock, jwt::traits::kazuho_picojson> &builder) {
159+
std::string serialize(jwt::builder<jwt::default_clock,
160+
jwt::traits::kazuho_picojson> &builder) {
160161
if (m_kid != "none") {
161162
builder.set_key_id(m_kid);
162163
}

0 commit comments

Comments
 (0)