Skip to content

Commit

Permalink
linters
Browse files Browse the repository at this point in the history
  • Loading branch information
prince-chrismc committed Dec 12, 2023
1 parent 2c3d6ce commit 17060d0
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
14 changes: 9 additions & 5 deletions include/jwt-cpp/traits/open-source-parsers-jsoncpp/defaults.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

namespace jwt {
/**
* \brief a class to store a generic [open_source_parsers_jsoncpp](https://github.com/open-source-parsers/open_source_parsers_jsoncpp) value as claim
* \brief a class to store a generic [jsoncpp](https://github.com/open-source-parsers/jsoncpp) value as claim
*
* This type is the specialization of the \ref basic_claim class which
* uses the standard template types.
Expand All @@ -27,7 +27,9 @@ namespace jwt {
/**
* Return a builder instance to create a new token
*/
inline builder<traits::open_source_parsers_jsoncpp> create() { return builder<traits::open_source_parsers_jsoncpp>(); }
inline builder<traits::open_source_parsers_jsoncpp> create() {
return builder<traits::open_source_parsers_jsoncpp>();
}

#ifndef JWT_DISABLE_BASE64
/**
Expand Down Expand Up @@ -64,7 +66,8 @@ namespace jwt {
* \return Parsed JWK
* \throw std::runtime_error Token is not in correct format
*/
inline jwk<traits::open_source_parsers_jsoncpp> parse_jwk(const traits::open_source_parsers_jsoncpp::string_type& token) {
inline jwk<traits::open_source_parsers_jsoncpp>
parse_jwk(const traits::open_source_parsers_jsoncpp::string_type& token) {
return jwk<traits::open_source_parsers_jsoncpp>(token);
}

Expand All @@ -74,7 +77,8 @@ namespace jwt {
* \return Parsed JWKs
* \throw std::runtime_error Token is not in correct format
*/
inline jwks<traits::open_source_parsers_jsoncpp> parse_jwks(const traits::open_source_parsers_jsoncpp::string_type& token) {
inline jwks<traits::open_source_parsers_jsoncpp>
parse_jwks(const traits::open_source_parsers_jsoncpp::string_type& token) {
return jwks<traits::open_source_parsers_jsoncpp>(token);
}

Expand All @@ -85,4 +89,4 @@ namespace jwt {
using verify_context = verify_ops::verify_context<traits::open_source_parsers_jsoncpp>;
} // namespace jwt

#endif // JWT_CPP_JSONCPP_DEFAULTS_H
#endif // JWT_CPP_OPEN_SOURCE_PARSERS_JSONCPP_DEFAULTS_H
2 changes: 1 addition & 1 deletion tests/traits/OspJsoncppTest.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include "jwt-cpp/traits/open-source-parsers-jsoncpp/traits.h"
#include "jwt-cpp/traits/open-source_parsers_jsoncpp/traits.h"

#include <gtest/gtest.h>

Expand Down

0 comments on commit 17060d0

Please sign in to comment.