From 32a8ab40c151b48987fcf9ec7c11c13e5c53f509 Mon Sep 17 00:00:00 2001 From: Leif Middelschulte Date: Thu, 26 Oct 2017 11:58:51 +0200 Subject: [PATCH] removes unnecessary if/else-statement as suggested by @jeandet Details: https://github.com/mesonbuild/meson/pull/2529#discussion_r146985692 --- mesonbuild/modules/qt.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/mesonbuild/modules/qt.py b/mesonbuild/modules/qt.py index 1ff30efe7..c55d50f1a 100644 --- a/mesonbuild/modules/qt.py +++ b/mesonbuild/modules/qt.py @@ -122,10 +122,7 @@ class QtBaseModule: sources.append(ui_output) inc = get_include_args(include_dirs=include_directories) if len(moc_headers) > 0: - if len(moc_extra_arguments) > 0: - arguments = moc_extra_arguments + inc + ['@INPUT@', '-o', '@OUTPUT@'] - else: - arguments = inc + ['@INPUT@', '-o', '@OUTPUT@'] + arguments = moc_extra_arguments + inc + ['@INPUT@', '-o', '@OUTPUT@'] moc_kwargs = {'output': 'moc_@BASENAME@.cpp', 'arguments': arguments} moc_gen = build.Generator([self.moc], moc_kwargs)