Commit 169f4852 authored by Sakthipriyan Vairamani's avatar Sakthipriyan Vairamani Committed by James M Snell
Browse files

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: default avatarBenjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: default avatarRoman Reiss <me@silverwind.io>
Reviewed-By: default avatarTrevor Norris <trev.norris@gmail.com>
Reviewed-By: default avatarNicu Micleușanu <micnic90@gmail.com>
Reviewed-By: default avatarYorkie Liu <yorkiefixer@gmail.com>
Reviewed-By: default avatarJames M Snell <jasnell@gmail.com>
parent 2c7019bb
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment