cheery / node-udev

Bindings to libudev
35 stars 31 forks source link

fix(udev.cc): ignore undefined filters #46

Closed AntoninRousset closed 1 year ago

AntoninRousset commented 1 year ago

Allows filters to be undefined for list and monitor functions:

udev.list({ subsystems: undefined, tags: undefined });
udev.monitor({ subsystems: undefined, tags: undefined });

Previously the functions would throw an error telling that an Array was expected.

Sorry for the spam, @cheery