diff options
author | Ville Ranki <ville.ranki@iki.fi> | 2019-06-11 11:58:57 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-06-11 11:58:57 +0300 |
commit | 7591ec34cee15a58611408a996bdb1b92b6ffb98 (patch) | |
tree | 28b802960243a45a172453203d5af504592e5a61 /lib | |
parent | 26c51455901a6c0112531d86d61d65d31a70dfaa (diff) | |
download | libquotient-7591ec34cee15a58611408a996bdb1b92b6ffb98.tar.gz libquotient-7591ec34cee15a58611408a996bdb1b92b6ffb98.zip |
Remove unnecessary error checks in lib/connection.cpp
Co-Authored-By: Kitsune Ral <Kitsune-Ral@users.sf.net>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/connection.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/connection.cpp b/lib/connection.cpp index 5bf89815..27211a77 100644 --- a/lib/connection.cpp +++ b/lib/connection.cpp @@ -813,7 +813,7 @@ ForgetRoomJob* Connection::forgetRoom(const QString& id) connect(forgetJob, &BaseJob::result, this, [this, id, forgetJob] { // Leave room in case of success, or room not known by server - if(!forgetJob->error() || forgetJob->error() == BaseJob::StatusCode::IncorrectRequestError || forgetJob->error() == BaseJob::StatusCode::UnknownObjectError) { + if(!forgetJob->error() || forgetJob->error() == BaseJob::UnknownObjectError) { // Delete the room from roomMap d->removeRoom(id); } else { |