diff options
author | Leif Middelschulte <leif.middelschulte@gmail.com> | 2017-10-26 11:58:51 +0200 |
---|---|---|
committer | Leif Middelschulte <leif.middelschulte@gmail.com> | 2017-10-26 12:04:41 +0200 |
commit | 32a8ab40c151b48987fcf9ec7c11c13e5c53f509 (patch) | |
tree | c98feafb019ce97a648011e4e2abf708a82be3ab /mesonbuild | |
parent | 6fc3c0df0c212f0f51bbbb7a4006acfbf51d2d62 (diff) | |
download | meson-32a8ab40c151b48987fcf9ec7c11c13e5c53f509.zip meson-32a8ab40c151b48987fcf9ec7c11c13e5c53f509.tar.gz meson-32a8ab40c151b48987fcf9ec7c11c13e5c53f509.tar.bz2 |
removes unnecessary if/else-statement as suggested by @jeandet
Details: https://github.com/mesonbuild/meson/pull/2529#discussion_r146985692
Diffstat (limited to 'mesonbuild')
-rw-r--r-- | mesonbuild/modules/qt.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/mesonbuild/modules/qt.py b/mesonbuild/modules/qt.py index 1ff30ef..c55d50f 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) |