• darkpanda@lemmy.ca
      link
      fedilink
      arrow-up
      25
      arrow-down
      1
      ·
      2 months ago

      The code directly below:

      function getPathToUploadDirectory() {
        return config.tmp_path
      }
      
    • Omgpwnies@lemmy.world
      link
      fedilink
      English
      arrow-up
      1
      ·
      2 months ago

      If your company uses some sort of code checking tool on PRs, there may be a requirement that all functions have a docstring, even if it’s obvious what it’s doing. Leads to silly comments like this quite often