• Björn Tantau@swg-empire.de
      link
      fedilink
      arrow-up
      29
      ·
      1 day ago

      Ackshually three equal signs check for type as well. So mere truthiness is not enough. It has to be exactly true.

      Also, everyone knows FILE_NOT_FOUND isn’t a string but a boolean value.

      • foxglove (she/her)@lazysoci.al
        link
        fedilink
        English
        arrow-up
        1
        ·
        5 hours ago

        yeah, it’s funny how my brain collapsed the boolean check into if (role) rather than if (role === true) - that’s tricky

        what is FILE_NOT_FOUND? I can’t find much on it …