refactored result that an overload for void doesn't need to exist
This commit is contained in:
@@ -35,7 +35,8 @@ void SequenceFixture::check_sequence_not_exists(const std::string& sequence_name
|
||||
}
|
||||
|
||||
void SequenceFixture::drop_sequence_if_exists(const std::string& sequence_name) const {
|
||||
const auto result = db.sequence_exists(sequence_name).and_then([&sequence_name, this](const bool exists) {
|
||||
const auto result = db.sequence_exists(sequence_name).
|
||||
and_then([&sequence_name, this](const bool exists) -> utils::result<bool, utils::error> {
|
||||
if (exists) {
|
||||
auto res = query::drop()
|
||||
.sequence(sequence_name)
|
||||
|
||||
Reference in New Issue
Block a user