main.cc: Fix obsolete if-condition double check