Skip to content

Commit 2488955

Browse files
committed
make checkstyle stop crying about indentation
1 parent 1ffaec8 commit 2488955

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/main/java/net/discordjug/javabot/data/config/ReflectionUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ private static Field findDeclaredField(Class<?> cl, String name) throws NoSuchFi
8484
* @throws IllegalAccessException If the field cannot be set.
8585
*/
8686
public static Object set(@NotNull Field field, @NotNull Object parent, @NotNull String s) throws IllegalAccessException {
87-
Object value = field.getType() == String.class ? s : GsonUtils.fromJson(s, field.getGenericType());
87+
Object value = field.getType() == String.class ? s : GsonUtils.fromJson(s, field.getGenericType());
8888
field.set(parent, value);
8989
return value;
9090
}

src/main/java/net/discordjug/javabot/systems/configuration/SetConfigSubcommand.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -60,11 +60,11 @@ public InteractionCallbackAction<?> handleConfigSubcommand(@Nonnull SlashCommand
6060
return Responses.error(event, "Config `%s` not found", property);
6161
}
6262
String value;
63-
if (resolved instanceof String s) {
64-
value = s;
65-
} else {
66-
value = GsonUtils.toJson(resolved);
67-
}
63+
if (resolved instanceof String s) {
64+
value = s;
65+
} else {
66+
value = GsonUtils.toJson(resolved);
67+
}
6868
return event.replyModal(
6969
Modal.create(ComponentIdBuilder.build("config-set", property), "Change configuration value")
7070
.addComponents(Label.of("new value", TextInput.create("value", TextInputStyle.PARAGRAPH)

0 commit comments

Comments
 (0)