From 513bb389e3e3c3cfe47518164c6ce49736854756 Mon Sep 17 00:00:00 2001
From: Justin Pryzby <pryzbyj@telsasoft.com>
Date: Sat, 10 Apr 2021 22:53:21 -0500
Subject: [PATCH 2/3] Convert an if/else if without an else to a switch

---
 contrib/postgres_fdw/deparse.c | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/contrib/postgres_fdw/deparse.c b/contrib/postgres_fdw/deparse.c
index bdc4c3620d..2c702c0e37 100644
--- a/contrib/postgres_fdw/deparse.c
+++ b/contrib/postgres_fdw/deparse.c
@@ -2204,10 +2204,15 @@ deparseTruncateSql(StringInfo buf,
 	appendStringInfo(buf, " %s IDENTITY",
 					 restart_seqs ? "RESTART" : "CONTINUE");
 
-	if (behavior == DROP_RESTRICT)
+	switch (behavior)
+	{
+	case DROP_RESTRICT:
 		appendStringInfoString(buf, " RESTRICT");
-	else if (behavior == DROP_CASCADE)
+		break;
+	case DROP_CASCADE:
 		appendStringInfoString(buf, " CASCADE");
+		break;
+	}
 }
 
 /*
-- 
2.17.0

