Skip to content

Commit

Permalink
Adjust style of GetCurrentEventLoop check
Browse files Browse the repository at this point in the history
  • Loading branch information
rpetrich authored and kkoopa committed Jul 1, 2018
1 parent f78584d commit 139920e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions nan.h
Original file line number Diff line number Diff line change
Expand Up @@ -561,9 +561,9 @@ class AsyncResource {
};

inline uv_loop_t* GetCurrentEventLoop() {
#if NODE_MAJOR_VERSION >= 10 \
|| NODE_MAJOR_VERSION == 9 && NODE_MINOR_VERSION >= 3 \
|| NODE_MAJOR_VERSION == 8 && NODE_MINOR_VERSION >= 10
#if NODE_MAJOR_VERSION >= 10 || \
NODE_MAJOR_VERSION == 9 && NODE_MINOR_VERSION >= 3 || \
NODE_MAJOR_VERSION == 8 && NODE_MINOR_VERSION >= 10
return node::GetCurrentEventLoop(v8::Isolate::GetCurrent());
#else
return uv_default_loop();
Expand Down

0 comments on commit 139920e

Please sign in to comment.