Skip to content

Commit

Permalink
chore: more reformatting
Browse files Browse the repository at this point in the history
  • Loading branch information
broccolai committed Oct 26, 2023
1 parent 235560f commit a0af7c2
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ public BukkitPipelineUserService(final @NonNull Injector injector) {
}

@Override
@SuppressWarnings("deprecation")
public @NonNull TagsUser get(final @NonNull String username) {
return this.get(Bukkit.getOfflinePlayer(username).getUniqueId());
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ public UserParser(final @NonNull UserService userService) {
}

@Override
@SuppressWarnings("deprecation")
public @NonNull ArgumentParseResult<TagsUser> parse(
final @NonNull CommandContext<@NonNull CommandUser> commandContext,
final @NonNull Queue<String> inputQueue
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
import org.spongepowered.configurate.objectmapping.meta.Setting;
import org.spongepowered.configurate.serialize.SerializationException;

@SuppressWarnings("FieldMayBeFinal")
@ConfigSerializable
public final class LocaleConfiguration implements Configuration {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,7 @@ public final class ConfigurationModule extends AbstractModule {
File file = new File(folder, "locale.conf");

try {
return this.configuration(file, (loader, node) -> {
return LocaleConfiguration.loadFrom(node);
});
return this.configuration(file, (loader, node) -> LocaleConfiguration.loadFrom(node));
} catch (IOException e) {
throw new RuntimeException(e);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public final class LPDataService implements DataService {
public void saveUser(final @NonNull TagsUser user) {
Optional<Integer> potentialId = user.current();

if (!potentialId.isPresent()) {
if (potentialId.isEmpty()) {
return;
}

Expand Down

0 comments on commit a0af7c2

Please sign in to comment.