Skip to content

Commit

Permalink
Replace all space indentations with tabs
Browse files Browse the repository at this point in the history
  • Loading branch information
UnderscoreTud committed Sep 4, 2024
1 parent cd80a39 commit 0ab6a00
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/main/java/ch/njol/skript/sections/SecConditional.java
Original file line number Diff line number Diff line change
Expand Up @@ -389,9 +389,9 @@ private static List<SecConditional> getPrecedingConditionals(List<TriggerItem> t
// loop through the triggerItems in reverse order so that we find the most recent items first
for (int i = triggerItems.size() - 1; i >= 0; i--) {
TriggerItem triggerItem = triggerItems.get(i);
if (!(triggerItem instanceof SecConditional conditional))
break;
if (conditional.type == ConditionalType.ELSE)
if (!(triggerItem instanceof SecConditional conditional))
break;
if (conditional.type == ConditionalType.ELSE)
// if the conditional is an else, break because it belongs to a different condition and ends
// this one
break;
Expand All @@ -405,7 +405,7 @@ private static List<SecConditional> getElseIfs(List<TriggerItem> triggerItems) {
for (int i = triggerItems.size() - 1; i >= 0; i--) {
TriggerItem triggerItem = triggerItems.get(i);
if (triggerItem instanceof SecConditional secConditional) {
if (secConditional.type == ConditionalType.ELSE_IF) {
if (secConditional.type == ConditionalType.ELSE_IF) {
list.add(secConditional);
} else {
break;
Expand Down

0 comments on commit 0ab6a00

Please sign in to comment.