unix: remove kqueue cb == NULL check
The other implementations don't check for it and it's making the counters_init test fail.
This commit is contained in:
parent
1fa1c5106a
commit
1f001fe917
@ -97,11 +97,6 @@ int uv_fs_event_init(uv_loop_t* loop,
|
||||
/* We don't support any flags yet. */
|
||||
assert(!flags);
|
||||
|
||||
if (cb == NULL) {
|
||||
uv__set_sys_error(loop, EINVAL);
|
||||
return -1;
|
||||
}
|
||||
|
||||
/* TODO open asynchronously - but how do we report back errors? */
|
||||
if ((fd = open(filename, O_RDONLY)) == -1) {
|
||||
uv__set_sys_error(loop, errno);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user