Skip to content
Snippets Groups Projects
Unverified Commit 060affc7 authored by Shylock Hg's avatar Shylock Hg Committed by GitHub
Browse files

Remove the useless condition check (#1021)


Co-authored-by: default avatarYichen Wang <18348405+Aiee@users.noreply.github.com>
Co-authored-by: default avatarYee <2520865+yixinglu@users.noreply.github.com>
parent 16d72335
No related branches found
No related tags found
No related merge requests found
......@@ -72,9 +72,7 @@ std::shared_ptr<Session> SessionManager::removeSession(int64_t id) {
int64_t SessionManager::newSessionId() {
int64_t id = ++nextId_;
if (id == 0) {
id = ++nextId_;
}
DCHECK_GT(id, 0);
return id;
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment