Skip to content

Commit 6a9e325

Browse files
committed
Remove return with parameter in void function
1 parent 7215cfa commit 6a9e325

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/gen/gen-base.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ void gen_base_t::dbprepare(std::string_view stmt, std::string const &templ)
103103
{
104104
template_t sql_template{templ};
105105
sql_template.set_params(get_params());
106-
return connection().prepare(stmt, fmt::runtime(sql_template.render()));
106+
connection().prepare(stmt, fmt::runtime(sql_template.render()));
107107
}
108108

109109
void gen_base_t::dbprepare(std::string_view stmt, params_t const &tmp_params,
@@ -112,7 +112,7 @@ void gen_base_t::dbprepare(std::string_view stmt, params_t const &tmp_params,
112112
template_t sql_template{templ};
113113
sql_template.set_params(get_params());
114114
sql_template.set_params(tmp_params);
115-
return connection().prepare(stmt, fmt::runtime(sql_template.render()));
115+
connection().prepare(stmt, fmt::runtime(sql_template.render()));
116116
}
117117

118118
void gen_base_t::raster_table_preprocess(std::string const &table)

0 commit comments

Comments
 (0)