Skip to content

Commit 65aab5e

Browse files
bnoordhuisaduh95
authored andcommitted
squash! shut up linter
1 parent afb94ec commit 65aab5e

File tree

1 file changed

+3
-14
lines changed

1 file changed

+3
-14
lines changed

src/spawn_sync.cc

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,6 @@ void SyncProcessOutputBuffer::set_next(SyncProcessOutputBuffer* next) {
9292
next_ = next;
9393
}
9494

95-
9695
SyncProcessStdioPipe::SyncProcessStdioPipe(SyncProcessRunner* process_handler,
9796
bool readable,
9897
bool writable,
@@ -115,7 +114,6 @@ SyncProcessStdioPipe::SyncProcessStdioPipe(SyncProcessRunner* process_handler,
115114
CHECK(readable || writable);
116115
}
117116

118-
119117
SyncProcessStdioPipe::~SyncProcessStdioPipe() {
120118
CHECK(lifecycle_ == kUninitialized || lifecycle_ == kClosed);
121119

@@ -204,12 +202,10 @@ bool SyncProcessStdioPipe::writable() const {
204202
return writable_;
205203
}
206204

207-
208205
bool SyncProcessStdioPipe::overlapped() const {
209206
return overlapped_;
210207
}
211208

212-
213209
uv_stdio_flags SyncProcessStdioPipe::uv_flags() const {
214210
unsigned int flags;
215211

@@ -218,8 +214,7 @@ uv_stdio_flags SyncProcessStdioPipe::uv_flags() const {
218214
flags |= UV_READABLE_PIPE;
219215
if (writable())
220216
flags |= UV_WRITABLE_PIPE;
221-
if (overlapped())
222-
flags |= UV_OVERLAPPED_PIPE;
217+
if (overlapped()) flags |= UV_OVERLAPPED_PIPE;
223218

224219
return static_cast<uv_stdio_flags>(flags);
225220
}
@@ -970,7 +965,6 @@ int SyncProcessRunner::AddStdioIgnore(uint32_t child_fd) {
970965
return 0;
971966
}
972967

973-
974968
int SyncProcessRunner::AddStdioPipe(uint32_t child_fd,
975969
bool readable,
976970
bool writable,
@@ -979,12 +973,8 @@ int SyncProcessRunner::AddStdioPipe(uint32_t child_fd,
979973
CHECK_LT(child_fd, stdio_count_);
980974
CHECK(!stdio_pipes_[child_fd]);
981975

982-
std::unique_ptr<SyncProcessStdioPipe> h(
983-
new SyncProcessStdioPipe(this,
984-
readable,
985-
writable,
986-
overlapped,
987-
input_buffer));
976+
std::unique_ptr<SyncProcessStdioPipe> h(new SyncProcessStdioPipe(
977+
this, readable, writable, overlapped, input_buffer));
988978

989979
int r = h->Initialize(uv_loop_);
990980
if (r < 0) {
@@ -1000,7 +990,6 @@ int SyncProcessRunner::AddStdioPipe(uint32_t child_fd,
1000990
return 0;
1001991
}
1002992

1003-
1004993
int SyncProcessRunner::AddStdioInheritFD(uint32_t child_fd, int inherit_fd) {
1005994
CHECK_LT(child_fd, stdio_count_);
1006995
CHECK(!stdio_pipes_[child_fd]);

0 commit comments

Comments
 (0)