Fix issue when picking from tqtc to tqtc repo/branch


Due to the logic of discovering the appropriate prefix
for the tqtc repo/branch, the process would fork in some cases
due to a missing return statement.

Change-Id: I0f070958ae29e53a58b69dbabd2cd3dfea311a16
Reviewed-by: Daniel Smith <Daniel.Smith@qt.io>
commit95e19a560f35b179fe2b5ad7c26f287d76fa2089
parent82e0af22a8f9ef94f557476f910567260a461341
authorDaniel Smith <daniel.smith@qt.io>
committerDaniel Smith <daniel.smith@qt.io>
commit timeMon, 15 Jan 2024 09:21:00 +0100