Author: dteske
Date: Mon Dec 12 19:24:32 2016
New Revision: 309930
URL: https://svnweb.freebsd.org/changeset/base/309930

Log:
  Use ternary operator

Modified:
  head/usr.sbin/bsdinstall/scripts/wlanconfig

Modified: head/usr.sbin/bsdinstall/scripts/wlanconfig
==============================================================================
--- head/usr.sbin/bsdinstall/scripts/wlanconfig Mon Dec 12 19:16:35 2016        
(r309929)
+++ head/usr.sbin/bsdinstall/scripts/wlanconfig Mon Dec 12 19:24:32 2016        
(r309930)
@@ -96,10 +96,7 @@ dialog_country_select()
                for (i = 1; i <= NF; i++) {
                        printf "%s", $i
                        if ($i ~ /[[:lower:]]/)
-                               if ($(i+1) ~ /[[:lower:]]/)
-                                       printf "\\\\\\ "
-                               else
-                                       printf "\n"
+                               printf $(i+1) ~ /[[:lower:]]/ ? "\\\\\\ " : "\n"
                        else
                                printf " "
                }
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to