diff options
author | bfredl <bjorn.linse@gmail.com> | 2022-11-08 09:48:48 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-08 09:48:48 +0100 |
commit | fae754073289566051433fae74ec65783f9e7a6a (patch) | |
tree | 27fa3555e5a8a016dce55cc39f20599e32cf7046 /src/nvim/eval/decode.c | |
parent | d187c00faf4feb76bdc544b87bea71f217d05957 (diff) | |
parent | 731cdde28ea8d48cc23ba2752a08c261c87eee92 (diff) | |
download | rneovim-fae754073289566051433fae74ec65783f9e7a6a.tar.gz rneovim-fae754073289566051433fae74ec65783f9e7a6a.tar.bz2 rneovim-fae754073289566051433fae74ec65783f9e7a6a.zip |
Merge pull request #20821 from dundargoc/refactor/clang-tidy
refactor: fix clang-tidy warnings
Diffstat (limited to 'src/nvim/eval/decode.c')
-rw-r--r-- | src/nvim/eval/decode.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/nvim/eval/decode.c b/src/nvim/eval/decode.c index 6b7eb2f8f8..f677148e08 100644 --- a/src/nvim/eval/decode.c +++ b/src/nvim/eval/decode.c @@ -284,13 +284,12 @@ typval_T decode_string(const char *const s, const size_t len, const TriState has } } return tv; - } else { - return (typval_T) { - .v_type = VAR_STRING, - .v_lock = VAR_UNLOCKED, - .vval = { .v_string = ((s == NULL || s_allocated) ? (char *)s : xmemdupz(s, len)) }, - }; } + return (typval_T) { + .v_type = VAR_STRING, + .v_lock = VAR_UNLOCKED, + .vval = { .v_string = ((s == NULL || s_allocated) ? (char *)s : xmemdupz(s, len)) }, + }; } /// Parse JSON double-quoted string |