From 92be1147fc7eb831ddb8dfb600c02335dbdc2a34 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Mon, 3 Jul 2017 14:45:23 +1200 Subject: Remove some unneeded braces --- bin/xrq.awk | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'bin') diff --git a/bin/xrq.awk b/bin/xrq.awk index 62253bdb..ffd5f124 100644 --- a/bin/xrq.awk +++ b/bin/xrq.awk @@ -17,14 +17,12 @@ BEGIN { # Run `xrdb -query` and search for instances of the requested resource xrdb = "xrdb -query" found = 0 - while (xrdb | getline) { - for (i in ARGV) { + while (xrdb | getline) + for (i in ARGV) if ($1 == ARGV[i]) { found = 1 print $2 } - } - } close(xrdb) # Exit successfully if we found at least one result -- cgit v1.2.3