We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 1a9270f + e8dc0be commit 65287ffCopy full SHA for 65287ff
1 file changed
src/main/kotlin/goodspace/bllsoneshot/entity/assignment/Task.kt
@@ -72,8 +72,10 @@ class Task(
72
fun hasFeedback(): Boolean =
73
proofShots.any { it.hasFeedback() }
74
75
- fun hasReadAllFeedbacks() =
76
- proofShots.all { it.hasReadAllFeedbacks() }
+ fun hasReadAllFeedbacks(): Boolean {
+ if (!hasFeedback()) return false
77
+ return proofShots.all { it.hasReadAllFeedbacks() }
78
+ }
79
80
fun markFeedbackAsRead() {
81
proofShots.forEach { it.markFeedbackAsRead() }
0 commit comments