Remove a useless check for the 'yes' value of a bool option
This commit is contained in:
parent
d44214f136
commit
d3f9cce386
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user