mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-16 23:14:04 +00:00
Eliminate variable unused after refactor of wcstringutil.cpp
This commit is contained in:
parent
426fa82f8f
commit
57615504d0
1 changed files with 2 additions and 3 deletions
|
@ -182,13 +182,12 @@ maybe_t<string_fuzzy_match_t> string_fuzzy_match_t::try_create(const wcstring &s
|
||||||
}
|
}
|
||||||
|
|
||||||
// substr samecase
|
// substr samecase
|
||||||
size_t location;
|
if (match_against.find(string) != wcstring::npos) {
|
||||||
if ((location = match_against.find(string)) != wcstring::npos) {
|
|
||||||
return string_fuzzy_match_t{contain_type_t::substr, case_fold_t::samecase};
|
return string_fuzzy_match_t{contain_type_t::substr, case_fold_t::samecase};
|
||||||
}
|
}
|
||||||
|
|
||||||
// substr icase
|
// substr icase
|
||||||
if ((location = ifind(match_against, string, true /* fuzzy */)) != wcstring::npos) {
|
if (ifind(match_against, string, true /* fuzzy */) != wcstring::npos) {
|
||||||
return string_fuzzy_match_t{contain_type_t::substr, get_case_fold()};
|
return string_fuzzy_match_t{contain_type_t::substr, get_case_fold()};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue