aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/nnn.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/nnn.c b/src/nnn.c
index d475ce7..11f201f 100644
--- a/src/nnn.c
+++ b/src/nnn.c
@@ -1892,8 +1892,9 @@ static char *get_bm_loc(char *buf, int key)
xstrlcpy(buf, home, len + 1);
xstrlcpy(buf + len, bookmark[r].loc + 1, loclen);
return buf;
- } else
- return realpath(bookmark[r].loc, buf);
+ }
+
+ return realpath(bookmark[r].loc, buf);
}
}