]> granicus.if.org Git - nethack/commitdiff
remove redundant condition on adj_pit_checks()
authorSHIRAKATA Kentaro <argrath@ub32.org>
Tue, 8 Feb 2022 20:14:26 +0000 (05:14 +0900)
committerPatR <rankin@nethack.org>
Wed, 20 Apr 2022 07:00:46 +0000 (00:00 -0700)
supporting is never null, as outer if statement checks it.

src/dig.c

index b5d4676c2fadee986b15f5d85eccd9b5a17799b5..05c3e7afd758356b8305ab78d14262a7ec36f64e 100644 (file)
--- 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;
         }
     }