From 432f04fcec6c5cd46f2f9997be8123aa0a8fe292 Mon Sep 17 00:00:00 2001 From: LisoUseInAIKyrios <118716522+LisoUseInAIKyrios@users.noreply.github.com> Date: Sun, 20 Oct 2024 12:49:44 -0400 Subject: [PATCH] refactor --- .../youtube/patches/ChangeShortsRepeatPatch.java | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/app/src/main/java/app/revanced/integrations/youtube/patches/ChangeShortsRepeatPatch.java b/app/src/main/java/app/revanced/integrations/youtube/patches/ChangeShortsRepeatPatch.java index 13215d4351..b4306587e3 100644 --- a/app/src/main/java/app/revanced/integrations/youtube/patches/ChangeShortsRepeatPatch.java +++ b/app/src/main/java/app/revanced/integrations/youtube/patches/ChangeShortsRepeatPatch.java @@ -109,15 +109,12 @@ public static Enum changeShortsRepeatBehavior(Enum original) { return original; } - if (behavior.ytEnumValue == original) { - Logger.printDebug(() -> "Behavior setting is same as original. " - + "Using original: " + original.name()); - return original; - } - if (behavior.ytEnumValue != null) { - Logger.printDebug(() -> "Changing Shorts repeat behavior from: " - + original.name() + " to: " + behavior.name()); + Logger.printDebug(() -> behavior.ytEnumValue == original + ? "Changing Shorts repeat behavior from: " + original.name() + " to: " + behavior.name() + : "Behavior setting is same as original. Using original: " + original.name() + ); + return behavior.ytEnumValue; } } catch (Exception ex) {