Skip to content

Commit

Permalink
fix comments
Browse files Browse the repository at this point in the history
  • Loading branch information
1daidai1 committed Nov 29, 2024
1 parent 4706d88 commit dcf7c8d
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/CraneCtld/CtldGrpcServer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -978,10 +978,8 @@ CtldServer::SubmitTaskToScheduler(std::unique_ptr<TaskInCtld> task) {
return {std::move(future)};
}

if (result.has_error()) {
CRANE_DEBUG("Task submission failed. Reason: {}.", result.error().second);
return result::fail(result.error().second);
}
CRANE_DEBUG("Task submission failed. Reason: {}.", result.error().second);
return result::fail(result.error().second);
}

} // namespace Ctld

0 comments on commit dcf7c8d

Please sign in to comment.