Skip to content

Commit

Permalink
Formatting fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Dec 30, 2023
1 parent 28144dc commit b2e6e4f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions wpilibc/src/main/native/cpp/event/EventLoop.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
// the WPILib BSD license file in the root directory of this project.

#include "frc/event/EventLoop.h"

#include "frc/Errors.h"

using namespace frc;
Expand All @@ -21,7 +22,8 @@ EventLoop::EventLoop() {}

void EventLoop::Bind(wpi::unique_function<void()> action) {
if (m_running) {
throw FRC_MakeError(err::Error, "Cannot bind EventLoop while it is running");
throw FRC_MakeError(err::Error,
"Cannot bind EventLoop while it is running");
}
m_bindings.emplace_back(std::move(action));
}
Expand All @@ -35,7 +37,8 @@ void EventLoop::Poll() {

void EventLoop::Clear() {
if (m_running) {
throw FRC_MakeError(err::Error, "Cannot clear EventLoop while it is running");
throw FRC_MakeError(err::Error,
"Cannot clear EventLoop while it is running");
}
m_bindings.clear();
}

0 comments on commit b2e6e4f

Please sign in to comment.