Code cleanup

This commit is contained in:
Ilkka Seppälä
2020-07-30 17:25:32 +03:00
parent 5381387026
commit 981985531d
243 changed files with 1157 additions and 1166 deletions

View File

@@ -66,9 +66,6 @@ public class Queen implements Royalty {
* @return A value which describes if the flirt was successful or not.
*/
public boolean getFlirted(King king) {
if (this.isFlirty && king.isHappy && !king.isDrunk) {
return true;
}
return false;
return this.isFlirty && king.isHappy && !king.isDrunk;
}
}