From f4602e9f39b75222a875b60a8ce8060f09271bac Mon Sep 17 00:00:00 2001 From: Phu Nguyen Date: Mon, 8 Apr 2019 14:13:57 +0700 Subject: [PATCH] Using declared variable instead of re-getting from task --- src/main/java/org/embulk/input/jira/util/JiraUtil.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/embulk/input/jira/util/JiraUtil.java b/src/main/java/org/embulk/input/jira/util/JiraUtil.java index 47f00b9..6f57a61 100644 --- a/src/main/java/org/embulk/input/jira/util/JiraUtil.java +++ b/src/main/java/org/embulk/input/jira/util/JiraUtil.java @@ -74,7 +74,7 @@ public static void validateTaskConfig(final PluginTask task) .setCookieSpec(CookieSpecs.STANDARD) .build()) .build()) { - HttpGet request = new HttpGet(task.getUri()); + HttpGet request = new HttpGet(uri); try (CloseableHttpResponse response = client.execute(request)) { response.getStatusLine().getStatusCode(); }