From 5357106187c8024a521806a90cc6cef73aec7046 Mon Sep 17 00:00:00 2001 From: philipp lang Date: Wed, 3 May 2023 21:26:27 +0200 Subject: [PATCH] Lint --- app/Nami/Api/FullMemberAction.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/app/Nami/Api/FullMemberAction.php b/app/Nami/Api/FullMemberAction.php index 7831959e..8ddbd43c 100644 --- a/app/Nami/Api/FullMemberAction.php +++ b/app/Nami/Api/FullMemberAction.php @@ -19,12 +19,10 @@ class FullMemberAction 'courses' => CoursesOfAction::run($api, $memberId), ]); - if (!$redisKey) { - return $fullMember; + if ($redisKey) { + Redis::rpush($redisKey, $fullMember->toJson()); } - Redis::rpush($redisKey, $fullMember->toJson()); - return $fullMember; } }