mirror of
https://github.com/apache/cordova-android.git
synced 2025-02-22 00:32:55 +08:00
removing unnecessary try/catch
This commit is contained in:
parent
40637c1486
commit
357c0ee1ca
@ -94,7 +94,6 @@ public class FileUtils extends Plugin {
|
||||
String result = "";
|
||||
//System.out.println("FileUtils.execute("+action+")");
|
||||
|
||||
try {
|
||||
try {
|
||||
if (action.equals("testSaveLocationExists")) {
|
||||
boolean b = DirectoryManager.testSaveLocationExists();
|
||||
@ -217,10 +216,6 @@ public class FileUtils extends Plugin {
|
||||
} catch (TypeMismatchException e) {
|
||||
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