Module: check_mk
Branch: master
Commit: d15baaac6bc1f98e972d2c7d24d8d28518209cde
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=d15baaac6bc1f9…
Author: Sven Panne <sp(a)mathias-kettner.de>
Date: Thu May 11 14:07:36 2017 +0200
clang-tidy: readability-else-after-return fixes.
Change-Id: I2d81aa049a0a7324b158e6db13e6a429450ef4c6
---
livestatus/src/unixcat.cc | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/livestatus/src/unixcat.cc b/livestatus/src/unixcat.cc
index 2da2d9c..6a0555c 100644
--- a/livestatus/src/unixcat.cc
+++ b/livestatus/src/unixcat.cc
@@ -83,7 +83,8 @@ void *copy_thread(void *info) {
if (r == -1) {
printErrno("Error reading from " + to_string(from));
break;
- } else if (r == 0) {
+ }
+ if (r == 0) {
if (ti->should_shutdown != 0) {
shutdown(to, SHUT_WR);
}
@@ -92,7 +93,8 @@ void *copy_thread(void *info) {
return voidp;
}
break;
- } else if (r == -2) {
+ }
+ if (r == -2) {
r = 0;
}