aboutsummaryrefslogtreecommitdiff
path: root/bbot/worker/worker.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'bbot/worker/worker.cxx')
-rw-r--r--bbot/worker/worker.cxx20
1 files changed, 6 insertions, 14 deletions
diff --git a/bbot/worker/worker.cxx b/bbot/worker/worker.cxx
index e3da1dd..a078498 100644
--- a/bbot/worker/worker.cxx
+++ b/bbot/worker/worker.cxx
@@ -426,20 +426,12 @@ startup ()
// Find the environment setup executable.
//
- string tg;
- process_path pp;
-
- if (tm.target)
- {
- tg = tm.target->string ();
-
- // While the executable path contains a directory (so the PATH search
- // does not apply) we still use process::path_search() to automatically
- // handle appending platform-specific executable extensions (.exe/.bat,
- // etc).
- //
- pp = process::try_path_search (env_dir / tg, false);
- }
+ // While the executable path contains a directory (so the PATH search does
+ // not apply) we still use process::path_search() to automatically handle
+ // appending platform-specific executable extensions (.exe/.bat, etc).
+ //
+ string tg (tm.target.string ());
+ process_path pp (process::try_path_search (env_dir / tg, false));
if (pp.empty ())
pp = process::try_path_search (env_dir / "default", false);