summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrank LENORMAND <lenormf@gmail.com>2015-08-05 17:32:33 +0300
committerMaxime Coste <frrrwww@gmail.com>2015-08-07 09:20:57 +0100
commitd3f9cce386dd440f5ee27c8dfaada6e63be2ac61 (patch)
tree905567273907c15bae477392be3899ff03c324d5
parentd44214f136900933f858f8b8b8234e6dd48e5ac4 (diff)
Remove a useless check for the 'yes' value of a bool option
-rw-r--r--rc/autorestore.kak3
1 files changed, 1 insertions, 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
}