Commit ddb50505 authored by Jakob Moser's avatar Jakob Moser
Browse files

Use === instead of ==

parent 99f30203
Loading
Loading
Loading
Loading
+1 −1
Changes for static/js/exercises.mjs: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -25,7 +25,7 @@ exercise("Berechtigungen anpassen", async function () {
    this.verify("ls -ld /resources/supergeheim").hasOutput((outputLines) => {
        // Verify that the output of "ls -ld /resources/supergeheim" contains the correct permissions
        // (the regular expression checks that the read bits are correctly set, it doesn't care about the other's)
        return outputLines.length == 1 && outputLines[0].substring(0, 10).match(/-r..-..-../)
        return outputLines.length === 1 && outputLines[0].substring(0, 10).match(/-r..-..-../)
    })
})

+1 −1
Changes for static/js/yalikejazz.mjs: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -4,7 +4,7 @@ import { getHandInToken } from "./snakeoil.mjs"
import { createExerciseCard, displayAsSolved, displayAsNonCurrent, displayAsCurrent } from "./exercises.cards.mjs"

function findNextUnsolvedExerciseIndex(currentExerciseIndex) {
    if (currentState.solvedExercises.length == exercises.length) {
    if (currentState.solvedExercises.length === exercises.length) {
        return null
    } else {
        let nextUnsolvedExerciseIndex = currentExerciseIndex