• Björn@swg-empire.de
    link
    fedilink
    arrow-up
    11
    ·
    10 months 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
      0
      ·
      10 months 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 …