mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-27 20:47:15 +00:00
[Cleanup] Remove always true statement in say_link.cpp (#3188)
# Notes - This is always true since we check `!saylinks.empty()` prior to this.
This commit is contained in:
@@ -403,7 +403,6 @@ SaylinkRepository::Saylink EQ::SayLinkEngine::GetOrSaveSaylink(std::string sayli
|
|||||||
}
|
}
|
||||||
|
|
||||||
// if not found in database - save
|
// if not found in database - save
|
||||||
if (saylinks.empty()) {
|
|
||||||
auto new_saylink = SaylinkRepository::NewEntity();
|
auto new_saylink = SaylinkRepository::NewEntity();
|
||||||
new_saylink.phrase = saylink_text;
|
new_saylink.phrase = saylink_text;
|
||||||
|
|
||||||
@@ -413,7 +412,6 @@ SaylinkRepository::Saylink EQ::SayLinkEngine::GetOrSaveSaylink(std::string sayli
|
|||||||
g_cached_saylinks.emplace_back(link);
|
g_cached_saylinks.emplace_back(link);
|
||||||
return link;
|
return link;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
return {};
|
return {};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user