From a1755e652cd96efb22b4956e8ef9759d7d170f5d Mon Sep 17 00:00:00 2001 From: Satoshi Ohmori Date: Fri, 16 Oct 2015 04:49:53 +0900 Subject: [PATCH] Refactor for method in plugins/rake-fast/rake-fast.plugin.zsh --- plugins/rake-fast/rake-fast.plugin.zsh | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/plugins/rake-fast/rake-fast.plugin.zsh b/plugins/rake-fast/rake-fast.plugin.zsh index cfc9a079f..d305eb1f0 100644 --- a/plugins/rake-fast/rake-fast.plugin.zsh +++ b/plugins/rake-fast/rake-fast.plugin.zsh @@ -8,17 +8,7 @@ _rake_refresh () { } _rake_does_task_list_need_generating () { - if [ ! -f .rake_tasks ]; then return 0; - else - if [[ "$OSTYPE" = darwin* ]]; then - accurate=$(stat -f%m .rake_tasks) - changed=$(stat -f%m Rakefile) - else - accurate=$(stat -c%Y .rake_tasks) - changed=$(stat -c%Y Rakefile) - fi - return $(expr $accurate '>=' $changed) - fi + [[ ! -f .rake_tasks ]] || [[ Rakefile -nt .rake_tasks ]] } _rake_generate () {