Skip to content

Commit

Permalink
remove curly braces of one-line if-body
Browse files Browse the repository at this point in the history
  • Loading branch information
chmodsayshello committed Sep 1, 2024
1 parent 17e106d commit 7e7bf9d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/gui/guiChatConsole.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -234,9 +234,9 @@ void GUIChatConsole::reformatConsole()
if (cols <= 0 || rows <= 0)
cols = rows = 0;

if (m_scrollbar_enabled) {
if (m_scrollbar_enabled)
m_scrollbar->setRelativePosition(core::rect<s32> (m_screensize.X - 32, 0, m_screensize.X, m_height));
}


recalculateConsolePosition();
m_chat_backend->reformat(cols, rows);
Expand Down

0 comments on commit 7e7bf9d

Please sign in to comment.