Skip to content

Commit ba903aa

Browse files
committed
fix use of stack variable after return
1 parent 593d948 commit ba903aa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ inline std::string solveChallenge(int value) {
138138
static Future<Result<>> submitSolution(const AccountData& account, std::string_view solution, int id) {
139139
auto text = fmt::format("#ARGON# {}", solution);
140140

141-
return web::submitGDMessage(account, id, text);
141+
co_return co_await web::submitGDMessage(account, id, text);
142142
}
143143

144144
static Future<std::string> troubleshootFailureCause(const AccountData& account) {

0 commit comments

Comments
 (0)