src: remove unnecessary `std::string` error messages · nodejs/node@42f7d7c · GitHub
Skip to content

Commit 42f7d7c

Browse files
addaleaxtargos
authored andcommitted
src: remove unnecessary std::string error messages
If we can just use the classic `THROW_...()` methods directly, without needing to allocate an `std::string` for the message/format parameter, let's just do so. PR-URL: #60057 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com> Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
1 parent 30c2c0f commit 42f7d7c

1 file changed

Lines changed: 22 additions & 20 deletions

File tree

src/node_file.cc

Lines changed: 22 additions & 20 deletions

0 commit comments

Comments
 (0)