Remove a useless check for the 'yes' value of a bool option

This commit is contained in:
Frank LENORMAND 2015-08-05 17:32:33 +03:00 committed by Maxime Coste
parent d44214f136
commit d3f9cce386

View File

@ -31,8 +31,7 @@ def autorestore-restore-buffer -docstring "Restore the backup for the current fi
echo " echo "
hook -group autorestore global BufWritePost (.+/)?${kak_bufname} %{ hook -group autorestore global BufWritePost (.+/)?${kak_bufname} %{
nop %sh{ nop %sh{
if [ \"\${kak_opt_autorestore_purge_restored,,}\" = yes \ if [ \"\${kak_opt_autorestore_purge_restored,,}\" = true ]; then
-o \"\${kak_opt_autorestore_purge_restored,,}\" = true ]; then
rm -f '${latest_backup_path}' rm -f '${latest_backup_path}'
fi fi
} }