Skip to content
This repository has been archived by the owner on Oct 26, 2024. It is now read-only.

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
LisoUseInAIKyrios committed Oct 20, 2024
1 parent a7c830e commit 432f04f
Showing 1 changed file with 5 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 432f04f

Please sign in to comment.