[PATCH] testbot/web: Simplify FormPage::GetDisplayValue().
Francois Gouget
fgouget at codeweavers.com
Fri Nov 30 05:55:15 CST 2018
Signed-off-by: Francois Gouget <fgouget at codeweavers.com>
---
testbot/lib/ObjectModel/CGI/FormPage.pm | 8 ++------
1 file changed, 2 insertions(+), 6 deletions(-)
diff --git a/testbot/lib/ObjectModel/CGI/FormPage.pm b/testbot/lib/ObjectModel/CGI/FormPage.pm
index 01f7894891..735755f3cf 100644
--- a/testbot/lib/ObjectModel/CGI/FormPage.pm
+++ b/testbot/lib/ObjectModel/CGI/FormPage.pm
@@ -189,12 +189,8 @@ sub GetDisplayValue($$)
{
my ($self, $PropertyDescriptor) = @_;
- my $Value;
- if (defined($self->GetParam($PropertyDescriptor->GetName())))
- {
- $Value = $self->GetParam($PropertyDescriptor->GetName());
- }
- else
+ my $Value = $self->GetParam($PropertyDescriptor->GetName());
+ if (!defined $Value)
{
$Value = $self->GetPropertyValue($PropertyDescriptor);
}
--
2.19.1
More information about the wine-devel
mailing list