Skip to content

fs: refactor to remove redundant validation - #36984

Closed
RaisinTen wants to merge 1 commit into
nodejs:masterfrom
RaisinTen:fs/refactor-to-remove-redundant-validation
Closed

fs: refactor to remove redundant validation#36984
RaisinTen wants to merge 1 commit into
nodejs:masterfrom
RaisinTen:fs/refactor-to-remove-redundant-validation

Conversation

@RaisinTen

Copy link
Copy Markdown
Member

The function makeCallback already calls validateCallback, so the call
inside copyFile can be removed.

makeCallback is called here:

node/lib/fs.js

Line 2050 in 568b26a

callback=makeCallback(callback);

and makeCallback calls validateCallback here:

validateCallback(cb);

The function makeCallback already calls validateCallback, so the call
inside copyFile can be removed.
@nodejs-github-botnodejs-github-bot added the fs Issues and PRs related to the fs subsystem / file system. label Jan 18, 2021
@RaisinTen

Copy link
Copy Markdown
MemberAuthor

cc @nodejs/fs

@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

@aduh95aduh95 added the author ready PRs that have at least one approval, no pending requests for changes, and a CI started. label Jan 18, 2021
@jasnell

Copy link
Copy Markdown
Member

Landed in ae5e95f

@jasnelljasnell closed this Jan 23, 2021
jasnell pushed a commit that referenced this pull request Jan 23, 2021
The function makeCallback already calls validateCallback, so the call
inside copyFile can be removed.
PR-URL: #36984
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
@RaisinTen
RaisinTen deleted the fs/refactor-to-remove-redundant-validation branch January 23, 2021 13:44
targos pushed a commit that referenced this pull request Feb 2, 2021
The function makeCallback already calls validateCallback, so the call
inside copyFile can be removed.
PR-URL: #36984
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
@targostargos mentioned this pull request Feb 2, 2021
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

author readyPRs that have at least one approval, no pending requests for changes, and a CI started.fsIssues and PRs related to the fs subsystem / file system.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants

@RaisinTen@nodejs-github-bot@jasnell@lpinca@targos@cjihrig@aduh95@juanarbol