5
luaq
5y

path.join(parent + child);

I want to punch whoever writes this line of code unironically.

Comments
  • 0
    path.join(parent + child);
    .
    .
    ;)
  • 1
    Why?
    What's wrong with this?

    Apart from a missing slash, at least
  • 1
    @kira 🤜🤜
  • 0
    @rendezvous I think so.
  • 0
    @rendez-vous in python yes

    Or path.join([ ...parent, ...child]) since it's a node environment ^^
Add Comment