| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
|
I suppose this doesn't hurt for a little extra consistency. LGTM |
Sorry, something went wrong.
|
Care to change the var to let? |
Sorry, something went wrong.
|
In my node's package promise-adapter, I am not sure a callback whether is node-style or not,so I suppose if the first arguments is null that is node-style callback. Other cases, I think this has little effect. |
Sorry, something went wrong.
|
I'm not sure how reliable that will be. I'd be willing to bet that there are cases where the first arg to the callback is undefined. |
Sorry, something went wrong.
Sorry, something went wrong.
|
LGTM |
Sorry, something went wrong.
|
LGTM |
Sorry, something went wrong.
Sorry, something went wrong.
This commit ensures that readFile() callsback with a null error consistently on success. PR-URL: #3740 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Evan Lucas <evanlucas@me.com> Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
|
@jasnell sorry, which labels should I apply to have this backported? There are too many labels to pick from :-) |
Sorry, something went wrong.
|
Please use the lts-watch labels to identify things that should be back ported. |
Sorry, something went wrong.
This commit ensures that readFile() callsback with a null error consistently on success. PR-URL: #3740 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Evan Lucas <evanlucas@me.com> Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
|
removing this from lts-watch as it effects code that was part of a semver-major fix that will not be applied to v4.x @cjihrig please feel free to reapply to tag if I am mistaken |
Sorry, something went wrong.
|
agreeing with @thealphanerd on this and applying dont-land-on-v4.x, looks like prior to #3485 it was returning null already. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
In PR-3485, if encoding set, fs.readFile will pass undefined not null to callback.