Skip to content

Commit

Permalink
fix(kernel): remove error message on the kernel version return
Browse files Browse the repository at this point in the history
Signed-off-by: Rafa Hernandez <rhernandez@teclib.com>
  • Loading branch information
rafaelje authored and Hector Rondon committed May 2, 2018
1 parent a1c69ea commit 41ecda6
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -180,11 +180,11 @@ private String removeBraket(String str) {
public static String getKernelVersion() {
try {
Process p = Runtime.getRuntime().exec("uname -a");
InputStream is = null;
InputStream is;
if (p.waitFor() == 0) {
is = p.getInputStream();
} else {
is = p.getErrorStream();
return "";
}
BufferedReader br = new BufferedReader(new InputStreamReader(is),
64);
Expand Down

0 comments on commit 41ecda6

Please sign in to comment.