diff --git a/src/stan/mcmc/windowed_adaptation.hpp b/src/stan/mcmc/windowed_adaptation.hpp index 75b658b7f9d..81fb46eac04 100644 --- a/src/stan/mcmc/windowed_adaptation.hpp +++ b/src/stan/mcmc/windowed_adaptation.hpp @@ -112,9 +112,7 @@ class windowed_adaptation : public base_adaptation { /** * Check if there is any more warmup left to do */ - bool finished() { - return adapt_window_counter_ + 1 >= num_warmup_; - } + bool finished() { return adapt_window_counter_ + 1 >= num_warmup_; } /** * Increment the window counter and return the new value diff --git a/src/test/unit/services/sample/hmc_nuts_dense_e_adapt_test.cpp b/src/test/unit/services/sample/hmc_nuts_dense_e_adapt_test.cpp index 2aee830f39c..7fd9b11eaa0 100644 --- a/src/test/unit/services/sample/hmc_nuts_dense_e_adapt_test.cpp +++ b/src/test/unit/services/sample/hmc_nuts_dense_e_adapt_test.cpp @@ -215,9 +215,10 @@ TEST_F(ServicesSampleHmcNutsDenseEAdapt, no_timestep_reset) { std::vector string_values = parameter.string_values(); bool found_step_size = false; - for(size_t i = 0; i < string_values.size(); i++) { - // Make sure the sampler wrote a Step size and that it is not reset to exactly 1 - if(string_values[i].compare("Step size")) { + for (size_t i = 0; i < string_values.size(); i++) { + // Make sure the sampler wrote a Step size and that it is not reset to + // exactly 1 + if (string_values[i].compare("Step size")) { found_step_size = true; EXPECT_NE(string_values[i].compare("Step size = 1"), 0); }