Skip to content
Snippets Groups Projects
Commit 6296f0f7 authored by akwizgran's avatar akwizgran
Browse files

Removed redundant call to checkEnabled() - it's called from start().

parent 5c78b480
No related branches found
No related tags found
No related merge requests found
...@@ -82,10 +82,8 @@ public class UnixRemovableDriveMonitorTest extends BriarTestCase { ...@@ -82,10 +82,8 @@ public class UnixRemovableDriveMonitorTest extends BriarTestCase {
TestUtils.deleteTestDirectory(testDir); TestUtils.deleteTestDirectory(testDir);
} }
private RemovableDriveMonitor createMonitor(final File dir) throws IOException { private RemovableDriveMonitor createMonitor(final File dir) {
UnixRemovableDriveMonitor.checkEnabled();
return new UnixRemovableDriveMonitor() { return new UnixRemovableDriveMonitor() {
@Override
protected String[] getPathsToWatch() { protected String[] getPathsToWatch() {
return new String[] { dir.getPath() }; return new String[] { dir.getPath() };
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment