lib: use triple equals

Signed-off-by: Trevor Norris <trev.norris@gmail.com>