Permalink
Browse files

ws changes

  • Loading branch information...
1 parent 545d337 commit dd67cb17489ebd5958def0f75bb4fe87df88f7ff @ditesh committed Feb 10, 2014
Showing with 3 additions and 6 deletions.
  1. +3 −6 unixlib.cc
View
@@ -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;

0 comments on commit dd67cb1

Please sign in to comment.