http-api: Remove unused exception thrown from hiscore client
This commit is contained in:
@@ -28,7 +28,6 @@ import com.google.gson.Gson;
|
|||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.io.InputStream;
|
import java.io.InputStream;
|
||||||
import java.io.InputStreamReader;
|
import java.io.InputStreamReader;
|
||||||
import java.net.URISyntaxException;
|
|
||||||
import net.runelite.http.api.RuneliteAPI;
|
import net.runelite.http.api.RuneliteAPI;
|
||||||
import okhttp3.HttpUrl;
|
import okhttp3.HttpUrl;
|
||||||
import okhttp3.OkHttpClient;
|
import okhttp3.OkHttpClient;
|
||||||
@@ -45,7 +44,7 @@ public class HiscoreClient
|
|||||||
private final OkHttpClient client = new OkHttpClient();
|
private final OkHttpClient client = new OkHttpClient();
|
||||||
private final Gson gson = new Gson();
|
private final Gson gson = new Gson();
|
||||||
|
|
||||||
public HiscoreResult lookup(String username) throws IOException, URISyntaxException
|
public HiscoreResult lookup(String username) throws IOException
|
||||||
{
|
{
|
||||||
HttpUrl.Builder builder = RuneliteAPI.getApiBase().newBuilder()
|
HttpUrl.Builder builder = RuneliteAPI.getApiBase().newBuilder()
|
||||||
.addPathSegment("hiscore")
|
.addPathSegment("hiscore")
|
||||||
|
|||||||
@@ -181,7 +181,7 @@ public class HiscorePanel extends PluginPanel
|
|||||||
{
|
{
|
||||||
result = client.lookup(lookup);
|
result = client.lookup(lookup);
|
||||||
}
|
}
|
||||||
catch (IOException | URISyntaxException ex)
|
catch (IOException ex)
|
||||||
{
|
{
|
||||||
logger.warn(null, ex);
|
logger.warn(null, ex);
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user