Skip to content

Commit 36d5336

Browse files
committed
src: format addon image loading with clang-format
Reflow the temporary-image open() call to what `CLANG_FORMAT_START=$(git merge-base HEAD main) make format-cpp` produces, so the C++ formatting check passes. Signed-off-by: Philipp Dunkel <pip@pipobscure.com>
1 parent e4195a3 commit 36d5336

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

‎src/node_binding.cc‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -652,9 +652,8 @@ bool AddonImage::MaterializeTempFile(const char* data, size_t len) {
652652
}
653653
temp_dir_ = buf.data();
654654
std::string file = temp_dir_ + "/addon.node";
655-
fd_ = open(file.c_str(),
656-
O_WRONLY | O_CREAT | O_EXCL | O_NOFOLLOW | O_CLOEXEC,
657-
0600);
655+
fd_ = open(
656+
file.c_str(), O_WRONLY | O_CREAT | O_EXCL | O_NOFOLLOW | O_CLOEXEC, 0600);
658657
if (fd_ == -1) {
659658
errmsg_ = "could not create a temporary file for the native addon";
660659
rmdir(temp_dir_.c_str());

0 commit comments

Comments
 (0)