Skip to content

Commit da568ed

Browse files
committed
Incorporate feedback from linter
1 parent 678894f commit da568ed

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

src/scitokens.cpp

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
1+
#include <atomic>
22
#include <exception>
3-
43
#include <string.h>
5-
#include <atomic>
4+
65

76
#include "scitokens.h"
87
#include "scitokens_internal.h"
@@ -11,7 +10,7 @@
1110
* GLOBALS
1211
*/
1312
std::atomic_int configurer::Configuration::m_next_update_delta{600};
14-
std::atomic_int configurer::Configuration::m_expiry_delta{4*24*3600};
13+
std::atomic_int configurer::Configuration::m_expiry_delta{4 * 24 * 3600};
1514

1615
SciTokenKey scitoken_key_create(const char *key_id, const char *alg,
1716
const char *public_contents,
@@ -972,7 +971,7 @@ int config_set_int(const char *key, int value, char **err_msg) {
972971
}
973972

974973
if (_key == "keycache.expiration_interval_s") {
975-
if (value <0 ) {
974+
if (value < 0 ) {
976975
if (err_msg) {
977976
*err_msg = strdup("Expiry interval must be positive.");
978977
}

src/scitokens_internal.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ class Configuration {
4242
m_expiry_delta = _expiry_delta;
4343
}
4444
static int get_expiry_delta() { return m_expiry_delta; }
45-
4645
private:
4746
static std::atomic_int m_next_update_delta;
4847
static std::atomic_int m_expiry_delta;

0 commit comments

Comments
 (0)