From d3f9cce386dd440f5ee27c8dfaada6e63be2ac61 Mon Sep 17 00:00:00 2001 From: Frank LENORMAND Date: Wed, 5 Aug 2015 17:32:33 +0300 Subject: [PATCH] Remove a useless check for the 'yes' value of a bool option --- rc/autorestore.kak | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/rc/autorestore.kak b/rc/autorestore.kak index 8956a5ac..678040a2 100644 --- a/rc/autorestore.kak +++ b/rc/autorestore.kak @@ -31,8 +31,7 @@ def autorestore-restore-buffer -docstring "Restore the backup for the current fi echo " hook -group autorestore global BufWritePost (.+/)?${kak_bufname} %{ nop %sh{ - if [ \"\${kak_opt_autorestore_purge_restored,,}\" = yes \ - -o \"\${kak_opt_autorestore_purge_restored,,}\" = true ]; then + if [ \"\${kak_opt_autorestore_purge_restored,,}\" = true ]; then rm -f '${latest_backup_path}' fi }