wasi: remove unecessary null check · nodejs/node@1b5856a · GitHub
Skip to content

Commit 1b5856a

Browse files
mhdawsontargos
authored andcommitted
wasi: remove unecessary null check
As reported by coverity the null check is done after earlier code has already derefenced options.envp. Either we should null check earlier uses or this check is not necessary. Since options.envp is created with new which should throw an exception intead of returning null, it should be safe to assume the null check is not required. Signed-off-by: Michael Dawson <mdawson@devrus.com> PR-URL: #42819 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Darshan Sen <raisinten@gmail.com>
1 parent 97fc00a commit 1b5856a

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

src/node_wasi.cc

Lines changed: 3 additions & 5 deletions

0 commit comments

Comments
 (0)