Skip to content

Commit

Permalink
fix pebkac
Browse files Browse the repository at this point in the history
  • Loading branch information
nicholasjackson committed Sep 3, 2023
1 parent 7ab1247 commit bed8ab5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,8 @@ public Login login(PlayerEntity player) {

Mod.LOGGER.debug(response.body());

GsonBuilder builder = new GsonBuilder();
Gson gson = builder.create();
GsonBuilder jsonbuilder = new GsonBuilder();
Gson gson = jsonbuilder.create();
Login login = gson.fromJson(response.body(), Login.class);
return login;
} catch (Exception e) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,8 @@ public boolean checkAccess(String token, String policy) {
Mod.LOGGER.info(response.body());

// check the value of the key in the secret
GsonBuilder builder = new GsonBuilder();
Gson gson = builder.create();
GsonBuilder jsonbuilder = new GsonBuilder();
Gson gson = jsonbuilder.create();
Secret secret = gson.fromJson(response.body(), Secret.class);

// check to see if the value in the secret matches the value defined in the lock
Expand Down

0 comments on commit bed8ab5

Please sign in to comment.