• kernelle@0d.gs
      link
      fedilink
      arrow-up
      1
      ·
      14 days ago

      The problem with this in the OP is the first ‘if’ checks if the object exists and the second gets a property of said object only if the original object exists.

      I’m not saying the OP is good code, but chaining them like this would result in exceptions.