Update examples/server/server.cpp

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
This commit is contained in:
Randall Fitzgerald 2023-05-23 07:34:36 -07:00 committed by GitHub
parent 2071d730fa
commit 421e66b330
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -43,7 +43,7 @@ struct llama_server_context
if(reload_ctx)
{
if(processed_tokens.size() != 0)
if(!processed_tokens.empty())
{
processed_tokens.erase(processed_tokens.begin() + 1, processed_tokens.end());
}