summaryrefslogtreecommitdiff
path: root/src/de/blinkt/openvpn/FileProvider.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/de/blinkt/openvpn/FileProvider.java')
-rw-r--r--src/de/blinkt/openvpn/FileProvider.java6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/de/blinkt/openvpn/FileProvider.java b/src/de/blinkt/openvpn/FileProvider.java
index c5cadc12..671d6446 100644
--- a/src/de/blinkt/openvpn/FileProvider.java
+++ b/src/de/blinkt/openvpn/FileProvider.java
@@ -94,8 +94,7 @@ implements PipeDataWriter<InputStream> {
openPipeHelper(uri, null, null, is, this), 0,
dumpfile.length());
} catch (IOException e) {
- FileNotFoundException fnf = new FileNotFoundException("Unable to open minidump " + uri);
- throw fnf;
+ throw new FileNotFoundException("Unable to open minidump " + uri);
}
}
@@ -110,8 +109,7 @@ implements PipeDataWriter<InputStream> {
if (!path.matches("^[0-9a-z-.]*(dmp|dmp.log)$"))
throw new FileNotFoundException("url not in expect format " + uri);
File cachedir = getContext().getCacheDir();
- File dumpfile = new File(cachedir,path);
- return dumpfile;
+ return new File(cachedir,path);
}
@Override