From 511b1ef3f1306ec6ae4a7dde00c9474c0a14fec8 Mon Sep 17 00:00:00 2001 From: "Wyatt J. Miller" Date: Fri, 18 Sep 2020 18:50:45 -0400 Subject: [PATCH] got rid of braces --- .../main/java/com/wyattjmiller/tictactoeapp/MainActivity.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/com/wyattjmiller/tictactoeapp/MainActivity.kt b/app/src/main/java/com/wyattjmiller/tictactoeapp/MainActivity.kt index 552b5b2..d153740 100644 --- a/app/src/main/java/com/wyattjmiller/tictactoeapp/MainActivity.kt +++ b/app/src/main/java/com/wyattjmiller/tictactoeapp/MainActivity.kt @@ -154,8 +154,8 @@ class MainActivity : AppCompatActivity(), View.OnClickListener { } private fun checkGameState(button: Button) { - if (mGameWon != GameOption.No) { return } else { - if (button.text != "") { return } else { + if (mGameWon != GameOption.No) return else { + if (button.text != "") return else { val buttonText = mGameboard.placePlayerPiece() button.text = buttonText val winner = isGameWon()