init-repository: Fix incorrect use of 'or' operator

This fixes the warning 'Useless use of a constant ("qt5") in void
context at ./init-repository line 649.'

Change-Id: I12133b30b504e536eaf68e4260df5aed28543eb6
Reviewed-by: Edward Welbourne <[email protected]>
(cherry picked from commit 8ebf0095c3)
Reviewed-by: Qt Cherry-pick Bot <[email protected]>
This commit is contained in:
Topi Reinio
2021-02-25 16:19:28 +00:00
committed by Qt Cherry-pick Bot
parent 790b582893
commit fada0bd6de
+1 -1
View File
@@ -646,7 +646,7 @@ sub run
die("Have no origin remote.\n") if (!$url);
$url =~ s,\.git$,,;
$url =~ s/((?:tqtc-)?qt5)$//;
my $qtrepo = $1 or 'qt5';
my $qtrepo = $1 || 'qt5';
$self->{'base-url'} = $url;
$self->git_clone_all_submodules($qtrepo, $self->{branch}, $self->{alternates}, @{$self->{'module-subset'}});