]> iEval git - app-devbot.git/commitdiff
Change block ifs to statement modifier ifs
authorMarius Gavrilescu <marius@ieval.ro>
Mon, 30 Jun 2014 17:07:21 +0000 (20:07 +0300)
committerMarius Gavrilescu <marius@ieval.ro>
Mon, 30 Jun 2014 17:07:21 +0000 (20:07 +0300)
lib/App/Devbot.pm

index d7cd700b47482b3ff191e5b1ec4308356343b9ee..1ba7bd70229c9aea72421c26702b8ba13f54c013 100644 (file)
@@ -72,12 +72,8 @@ sub bot_start{
        Retry_when_banned => 60,
   ));
 
-  if ($server =~ /^($RE{net}{domain})$/) {
-      $server = $1;
-  }
-  if ($port =~ /^([0-9]+)$/) {
-      $port = $1;
-  }
+  $server = $1 if $server =~ /^($RE{net}{domain})$/;
+  $port   = $1 if $port =~ /^([0-9]+)$/;
 
   $irc->yield(register => "all");
   $irc->yield(
This page took 0.01758 seconds and 4 git commands to generate.