mirror of
https://github.com/neovim/neovim.git
synced 2025-10-04 08:56:29 +00:00
Merge pull request #20821 from dundargoc/refactor/clang-tidy
refactor: fix clang-tidy warnings
This commit is contained in:
@@ -2159,9 +2159,8 @@ static int check_readonly(int *forceit, buf_T *buf)
|
||||
// Set forceit, to force the writing of a readonly file
|
||||
*forceit = true;
|
||||
return false;
|
||||
} else {
|
||||
return true;
|
||||
}
|
||||
return true;
|
||||
} else if (buf->b_p_ro) {
|
||||
emsg(_(e_readonly));
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user