chore(style): merge separate ifs into if-elses in filter.dart

Nothing big, just stumbled about it while browsing the code.