Removing unnessecary local variable

This commit is contained in:
Aldrin Piri 2015-02-17 16:04:21 -05:00
parent 7a74dd9420
commit 1a746212bf
1 changed files with 1 additions and 5 deletions

View File

@ -104,13 +104,9 @@ public class JsonUtils {
* @throws IOException
*/
public static boolean isValidJson(InputStream inputStream) throws IOException {
boolean isValid = false;
try (InputStreamReader inputStreamReader = new InputStreamReader(inputStream)) {
isValid = JSONValue.isValidJsonStrict(inputStreamReader);
return JSONValue.isValidJsonStrict(inputStreamReader);
}
return isValid;
}
/**