meson: Remove redundant return code check
authorAndres Freund <andres@anarazel.de>
Thu, 29 Jun 2023 16:12:52 +0000 (09:12 -0700)
committerAndres Freund <andres@anarazel.de>
Thu, 29 Jun 2023 16:16:03 +0000 (09:16 -0700)
run_command(check: true) already would have errorred out before the check is
reached.

Author: Tristan Partin <tristan@neon.tech>
Discussion: CSPIJVUDZFKX.3KHMOAVGF94RV@c3po

meson.build

index 7f67966db0dbb7dde404dcb90da176e36e9e54f2..fbec99794752941d1b1c493aa87d6da8cee4265a 100644 (file)
@@ -385,7 +385,7 @@ install_files = files('src/tools/install_files')
 # https://github.com/mesonbuild/meson/issues/8511
 meson_binpath_r = run_command(python, 'src/tools/find_meson', check: true)
 
-if meson_binpath_r.returncode() != 0 or meson_binpath_r.stdout() == ''
+if meson_binpath_r.stdout() == ''
   error('huh, could not run find_meson.\nerrcode: @0@\nstdout: @1@\nstderr: @2@'.format(
     meson_binpath_r.returncode(),
     meson_binpath_r.stdout(),