Skip to content

Commit e91ba59

Browse files
committed
Apply suggestions from linter review
1 parent c1b7bf0 commit e91ba59

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

src/scitokens_internal.cpp

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -671,16 +671,17 @@ std::unique_ptr<AsyncStatus> Validator::get_public_keys_from_web_continue(
671671
status->m_cget->get_url() + ": " + err);
672672
}
673673
if (!json_obj.is<picojson::object>()) {
674-
throw JsonException(
675-
"Metadata resource " + status->m_cget->get_url() + " contains "
676-
"improperly-formatted JSON.");
674+
throw JsonException("Metadata resource " +
675+
status->m_cget->get_url() +
676+
" contains "
677+
"improperly-formatted JSON.");
677678
}
678679
auto top_obj = json_obj.get<picojson::object>();
679680
auto iter = top_obj.find("jwks_uri");
680681
if (iter == top_obj.end() || (!iter->second.is<std::string>())) {
681-
throw JsonException(
682-
"Metadata resource " + status->m_cget->get_url() +
683-
" is missing 'jwks_uri' string value");
682+
throw JsonException("Metadata resource " +
683+
status->m_cget->get_url() +
684+
" is missing 'jwks_uri' string value");
684685
}
685686
auto jwks_uri = iter->second.get<std::string>();
686687
status->m_has_metadata = true;
@@ -706,7 +707,8 @@ std::unique_ptr<AsyncStatus> Validator::get_public_keys_from_web_continue(
706707
status->m_cget.reset();
707708
if (!err.empty()) {
708709
throw JsonException("JSON parse failure when downloading from the "
709-
" public key URL " + status->m_cget->get_url() + ": " + err);
710+
" public key URL " +
711+
status->m_cget->get_url() + ": " + err);
710712
}
711713

712714
auto now = std::time(NULL);

0 commit comments

Comments
 (0)