Remove unnecessary braces, to match the surrounding style.
authorHeikki Linnakangas
Wed, 12 Jul 2017 09:30:50 +0000 (12:30 +0300)
committerHeikki Linnakangas
Wed, 12 Jul 2017 09:31:16 +0000 (12:31 +0300)
Mostly in the new subscription-related commands. Backport the few that
were also present in older versions.

Thomas Munro

Discussion: https://www.postgresql.org/message-id/CAEepm=3CyW1QmXcXJXmqiJXtXzFDc8SvSfnxkEGD3Bkv2SrkeQ@mail.gmail.com

src/bin/psql/tab-complete.c

index 4cb2c49be97a967b9fb14b9781753cf33339a90b..6a8bb0ee99e4f6e194bca46864ea8047b66c6247 100644 (file)
@@ -3901,13 +3901,9 @@ psql_completion(const char *text, int start, int end)
        }
    }
    else if (strcmp(prev_wd, "\\unset") == 0)
-   {
        matches = complete_from_variables(text, "", "", true);
-   }
    else if (strcmp(prev_wd, "\\set") == 0)
-   {
        matches = complete_from_variables(text, "", "", false);
-   }
    else if (strcmp(prev2_wd, "\\set") == 0)
    {
        static const char *const boolean_value_list[] =