dog/farm/snap: fix incorrect conditional statement

Both sides of != is the same.

Signed-off-by: Ruoyu <liangry@ucweb.com>
Signed-off-by: Liu Yuan <namei.unix@gmail.com>