From 1cc7286587e1fca5e9da967a9ed0d74a75299c3a Mon Sep 17 00:00:00 2001
From: Tomaz Canabrava <tomaz.canabrava@gmail.com>
Date: Thu, 6 Aug 2015 11:59:52 -0300
Subject: [PATCH 4/5] Bit of code cleanup.

Signed-off-by: Tomaz Canabrava <tomaz.canabrava@gmail.com>
---
 qt-ui/starwidget.cpp | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

diff --git a/qt-ui/starwidget.cpp b/qt-ui/starwidget.cpp
index 117eaf7..d959ed3 100644
--- a/qt-ui/starwidget.cpp
+++ b/qt-ui/starwidget.cpp
@@ -152,16 +152,13 @@ void StarWidget::focusOutEvent(QFocusEvent *event)
 	QWidget::focusOutEvent(event);
 }
 
-
 void StarWidget::keyPressEvent(QKeyEvent *event)
 {
 	if (event->key() == Qt::Key_Up || event->key() == Qt::Key_Right) {
-		if (currentStars() < TOTALSTARS) {
+		if (currentStars() < TOTALSTARS)
 			setCurrentStars(currentStars() + 1);
-		}
 	} else if (event->key() == Qt::Key_Down || event->key() == Qt::Key_Left) {
-		if (currentStars() > 0) {
+		if (currentStars() > 0)
 			setCurrentStars(currentStars() - 1);
-		}
 	}
 }
-- 
2.3.2 (Apple Git-55)

