pager_in_use: use git_env_bool()

The pager_in_use() function predates git_env_bool(), but ends up doing the same thing. Let's make use of the latter, which is shorter and less repetitive. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Jeff King committed Mar 24, 2017 at 14:59 UTC df2a6e38b7e192c32d1df4b10cc278c2a66fb6a0
1 file changed +1 -3
pager.c
+1 -3
@@ -166,9 +166,7 @@ void setup_pager(void)
166
167 int pager_in_use(void)
168 {
169 - const char *env;
170 - env = getenv("GIT_PAGER_IN_USE");
171 - return env ? git_config_bool("GIT_PAGER_IN_USE", env) : 0;
169 + return git_env_bool("GIT_PAGER_IN_USE", 0);
170 }
171
172 /*