fs: refactor "options" processing as a function
As it is, the "options" processing is repeated in all the functions which need it. That introduces checks which are inconsistent with other functions and produces slightly different error messages. This patch moves the basic "options" validation and processing to a seperate function. PR-URL: https://github.com/nodejs/node/pull/7165 Reviewed-By:Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By:
Roman Reiss <me@silverwind.io> Reviewed-By:
Trevor Norris <trev.norris@gmail.com> Reviewed-By:
Nicu Micleușanu <micnic90@gmail.com> Reviewed-By:
Yorkie Liu <yorkiefixer@gmail.com> Reviewed-By:
James M Snell <jasnell@gmail.com>
parent
1d4ba1be
Please register or sign in to comment