message: qt, rpc, refactor: Return early in RPCConsole::on_lineEdit_returnPressed
diff: @@ -932,8 +932,10 @@ void RPCConsole::on_lineEdit_returnPressed()
  {
  QString cmd = ui->lineEdit->text();
  - if(!cmd.isEmpty())
  - {
  + if (cmd.isEmpty()) {
  + return;
  + }
  +
  std::string strFilteredCmd;
  try {
  std::string dummy;
  @@ -948,8 +950,6 @@ void RPCConsole::on_lineEdit_returnPressed()
  ui->lineEdit->clear();
  - cmdBeforeBrowsing = QString();
  -
  #ifdef ENABLE_WALLET
  WalletModel* wallet_model = ui->WalletSelector->currentData().value<WalletModel*>();
  @@ -961,7 +961,7 @@ void RPCConsole::on_lineEdit_returnPressed()
  }
  m_last_wallet_model = wallet_model;
  }
  -#endif
  +#endif // ENABLE_WALLET
  message(CMD_REQUEST, QString::fromStdString(strFilteredCmd));
  //: A console message indicating an entered command is currently being executed.
  @@ -975,15 +975,15 @@ void RPCConsole::on_lineEdit_returnPressed()
  // Append command to history
  history.append(cmd);
  // Enforce maximum history size
  - while(history.size() > CONSOLE_HISTORY)
  + while (history.size() > CONSOLE_HISTORY) {
  history.removeFirst();
  + }
  // Set pointer to end of history
  historyPtr = history.size();
  // Scroll console view to end
  scrollToEnd();
  }
  -}
  void RPCConsole::browseHistory(int offset)
  {
  