forked from github/cordova-android
removing unnecessary try/catch
This commit is contained in:
parent
40637c1486
commit
357c0ee1ca
@ -94,7 +94,6 @@ public class FileUtils extends Plugin {
|
|||||||
String result = "";
|
String result = "";
|
||||||
//System.out.println("FileUtils.execute("+action+")");
|
//System.out.println("FileUtils.execute("+action+")");
|
||||||
|
|
||||||
try {
|
|
||||||
try {
|
try {
|
||||||
if (action.equals("testSaveLocationExists")) {
|
if (action.equals("testSaveLocationExists")) {
|
||||||
boolean b = DirectoryManager.testSaveLocationExists();
|
boolean b = DirectoryManager.testSaveLocationExists();
|
||||||
@ -217,10 +216,6 @@ public class FileUtils extends Plugin {
|
|||||||
} catch (TypeMismatchException e) {
|
} catch (TypeMismatchException e) {
|
||||||
return new PluginResult(PluginResult.Status.ERROR, FileUtils.TYPE_MISMATCH_ERR);
|
return new PluginResult(PluginResult.Status.ERROR, FileUtils.TYPE_MISMATCH_ERR);
|
||||||
}
|
}
|
||||||
} catch (JSONException e) {
|
|
||||||
e.printStackTrace();
|
|
||||||
return new PluginResult(PluginResult.Status.JSON_EXCEPTION);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user