Removed a redundant |scalar()| -- |if| implies a scalar context anyway.
git-svn-id: svn://10.0.0.236/trunk@111067 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
4ec7cf70bc
commit
0a0d76f22a
@ -89,7 +89,7 @@ sub getCustomisedString {
|
||||
# XXX do we want to do an error here or something?
|
||||
$self->warn(4, "While I was looking for the string '$string' in protocol '$protocol' using variant '$variant', I failed with: $@");
|
||||
}
|
||||
if (scalar(@results)) {
|
||||
if (@results) {
|
||||
$self->stringsCache->{$variant}->{$string} = \@results;
|
||||
return @results;
|
||||
} else {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user