mirror of https://github.com/apache/nifi.git
Removing unnessecary local variable
This commit is contained in:
parent
7a74dd9420
commit
1a746212bf
|
@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue