You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficcontrol.apache.org by de...@apache.org on 2017/05/09 17:57:06 UTC
[2/4] incubator-trafficcontrol git commit: reduce the amount of code
reduce the amount of code
Project: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/commit/54f2b0c2
Tree: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/tree/54f2b0c2
Diff: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/diff/54f2b0c2
Branch: refs/heads/master
Commit: 54f2b0c29a020a4f4d5b604355c048e3318fa58d
Parents: ea085f0
Author: Derek Gelinas <de...@cable.comcast.com>
Authored: Mon May 8 12:17:35 2017 -0400
Committer: Dewayne Richardson <de...@apache.org>
Committed: Tue May 9 11:56:59 2017 -0600
----------------------------------------------------------------------
traffic_ops/app/lib/UI/Server.pm | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/54f2b0c2/traffic_ops/app/lib/UI/Server.pm
----------------------------------------------------------------------
diff --git a/traffic_ops/app/lib/UI/Server.pm b/traffic_ops/app/lib/UI/Server.pm
index a3be22c..2988af7 100644
--- a/traffic_ops/app/lib/UI/Server.pm
+++ b/traffic_ops/app/lib/UI/Server.pm
@@ -987,12 +987,9 @@ sub postupdate {
#Parameters don't have boolean options at this time, so we're going to compare against the default string value of 0.
if ( defined($use_reval_pending) && $use_reval_pending ne '0' && defined($reval_updated) ) {
- $update_server->update( { upd_pending => $updated } );
$update_server->update( { reval_pending => $reval_updated } );
}
- else {
- $update_server->update( { upd_pending => $updated } );
- }
+ $update_server->update( { upd_pending => $updated } );
$self->render( text => "Success", layout=>undef);