Skip to content

Commit

Permalink
Code Cleanup + Deprecated Method Replacement
Browse files Browse the repository at this point in the history
  • Loading branch information
CDAGaming committed Jan 11, 2018
1 parent 1d6728e commit fe75946
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,7 @@ protected boolean extractLibraries(File target, IInstallerMonitor monitor) throw
{
File libraries = new File(target, "libraries");
File targetLibraryFile = VersionInfo.getLibraryPath(libraries);
if (!this.extractLibrary(targetLibraryFile, VersionInfo.getContainedFile())) return false;
return true;
return this.extractLibrary(targetLibraryFile, VersionInfo.getContainedFile());
}

protected final boolean extractLibrary(File targetLibraryFile, String containedFile) throws HeadlessException
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ private boolean writeVersionFile(List<InstallationModifier> modifiers, File vers
return true;
}

private JsonNode readLauncherProfiles(File launcherProfiles) throws HeadlessException, RuntimeException
private JsonNode readLauncherProfiles(File launcherProfiles) throws RuntimeException
{
JdomParser parser = new JdomParser();
JsonNode jsonProfileData;
Expand All @@ -353,7 +353,7 @@ private JsonNode readLauncherProfiles(File launcherProfiles) throws HeadlessExce
}
catch (Exception e)
{
throw Throwables.propagate(e);
throw new RuntimeException(e);
}
return jsonProfileData;
}
Expand Down

0 comments on commit fe75946

Please sign in to comment.