Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

ws changes

  • Loading branch information...
commit dd67cb17489ebd5958def0f75bb4fe87df88f7ff 1 parent 545d337
@ditesh authored
Showing with 3 additions and 6 deletions.
  1. +3 −6 unixlib.cc
View
9 unixlib.cc
@@ -185,10 +185,8 @@ static void Flock(eio_req *req) {
struct flock_baton * baton = (struct flock_baton *)req->data;
- if (flock(baton->fd, LOCK_EX | LOCK_NB) == -1)
- baton->result = false;
- else
- baton->result = true;
+ if (flock(baton->fd, LOCK_EX | LOCK_NB) == -1) baton->result = false;
+ else baton->result = true;
}
@@ -253,8 +251,7 @@ static int AfterFlock(eio_req *req) {
TryCatch try_catch;
baton->cb->Call(Context::GetCurrent()->Global(), 1, argv);
- if (try_catch.HasCaught())
- FatalException(try_catch);
+ if (try_catch.HasCaught()) FatalException(try_catch);
baton->cb.Dispose();
delete baton;
Please sign in to comment.
Something went wrong with that request. Please try again.