Skip to content

Commit

Permalink
Quiz questions count fix
Browse files Browse the repository at this point in the history
  • Loading branch information
goody-h authored Aug 8, 2019
1 parent a3f7da8 commit e985389
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,9 @@ abstract class Quiz (var topic: String, private var mConfig: Config):

private fun resolveQuestionCount() = min(kotlin.run {
val n = mConfig.questionCount
if (n < 0) getTotalQuestions() - 1
if (n < 0) getTotalQuestions()
else mConfig.questionCount
}, getTotalQuestions() - 1)
}, getTotalQuestions())


interface QuizInterface {
Expand Down

0 comments on commit e985389

Please sign in to comment.