Fix warning.

GitOrigin-RevId: a2f981b2fb1a90947603c5cbdfcc95315c515987
This commit is contained in:
levlam 2018-06-28 02:50:46 +03:00
parent 4f1962f43d
commit 2a35816992
1 changed files with 2 additions and 2 deletions

View File

@ -89,11 +89,11 @@ int32 ConfigShared::get_option_integer(Slice name, int32 default_value) const {
string ConfigShared::get_option_string(Slice name, string default_value) const {
auto str_value = get_option(name);
if (str_value.empty()) {
return std::move(default_value);
return default_value;
}
if (str_value[0] != 'S') {
LOG(ERROR) << "Found \"" << str_value << "\" instead of string option";
return std::move(default_value);
return default_value;
}
return str_value.substr(1);
}