From 949c30dffab3f0ebd730a5f24b4a60d8150f966f Mon Sep 17 00:00:00 2001 From: SHIRAKATA Kentaro Date: Wed, 9 Feb 2022 05:14:26 +0900 Subject: [PATCH] remove redundant condition on adj_pit_checks() supporting is never null, as outer if statement checks it. --- src/dig.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/dig.c b/src/dig.c index b5d4676c2..05c3e7afd 100644 --- a/src/dig.c +++ b/src/dig.c @@ -1667,9 +1667,8 @@ adj_pit_checks(coord *cc, char *msg) supporting = "drawbridge"; if (supporting) { - Sprintf(msg, "The %s%ssupporting structures remain intact.", - supporting ? s_suffix(supporting) : "", - supporting ? " " : ""); + Sprintf(msg, "The %s supporting structures remain intact.", + s_suffix(supporting)); return FALSE; } }