Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
gvnnz committed May 20, 2024
1 parent 0c268ac commit f15cb3a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions src/core/model/channels.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ Channel& Channels::get(ID id)

const Channel& Channels::get(ID id) const
{
auto it = std::find_if(m_channels.begin(), m_channels.end(), [id](const Channel& c) { return c.id == id; });
auto it = std::find_if(m_channels.begin(), m_channels.end(), [id](const Channel& c)
{ return c.id == id; });
assert(it != m_channels.end());
return *it;
}
Expand Down Expand Up @@ -111,7 +112,8 @@ std::vector<Channel*> Channels::getIf(std::function<bool(const Channel&)> f)

void Channels::remove(ID id)
{
u::vector::removeIf(m_channels, [id](const Channel& c) { return c.id == id; });
u::vector::removeIf(m_channels, [id](const Channel& c)
{ return c.id == id; });
}

/* -------------------------------------------------------------------------- */
Expand Down
2 changes: 1 addition & 1 deletion src/core/model/channels.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class Channels
const std::vector<Channel>& getAll() const;

/* anyOf
Returns true if any channel satisfies the callback 'f'. */
Returns true if any channel satisfies the callback 'f'. */

bool anyOf(std::function<bool(const Channel&)> f) const;

Expand Down

0 comments on commit f15cb3a

Please sign in to comment.