From ef8e4bd3be46fb8737b8f824be92b1f5d5903db1 Mon Sep 17 00:00:00 2001 From: Matt Hamilton Date: Thu, 31 Dec 2015 11:05:09 -0500 Subject: [PATCH] remove zcompare's return No need to make returns for tests that we aren't making success/failure checks for; the function itself deals with what needs to be zcompiled. --- templates/zlogin | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/templates/zlogin b/templates/zlogin index a44c318..9595f4c 100644 --- a/templates/zlogin +++ b/templates/zlogin @@ -1,6 +1,5 @@ # -# startup file read in interactive login shell -# not run again in subsuquent shells +# startup file read in interactive login shells # # The following code helps us by optimizing the existing framework. # This includes zcompile, zcompdump, etc. @@ -12,12 +11,7 @@ # These jobs are asynchronous, and will not impact the interactive shell zcompare() { if [[ -s ${1} && ( ! -s ${1}.zwc || ${1} -nt ${1}.zwc) ]]; then - # needs zcomplie zcompile ${1} - return 0 - else - # no need to zcompile - return 1 fi }