aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorVille Ranki <ville.ranki@iki.fi>2019-06-11 11:58:57 +0300
committerGitHub <noreply@github.com>2019-06-11 11:58:57 +0300
commit7591ec34cee15a58611408a996bdb1b92b6ffb98 (patch)
tree28b802960243a45a172453203d5af504592e5a61 /lib
parent26c51455901a6c0112531d86d61d65d31a70dfaa (diff)
downloadlibquotient-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.cpp2
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 {