mirror of https://github.com/noisymime/Arduino.git
Use `File.getParentFile()` in Sketch constructor
No need to call the File constructor ourselves, if `File.getParentFile()` can just do that for us.
This commit is contained in:
parent
57a237752d
commit
9705e1e734
|
@ -46,7 +46,7 @@ public class Sketch {
|
|||
* Any file inside the sketch directory.
|
||||
*/
|
||||
Sketch(File file) throws IOException {
|
||||
folder = new File(file.getParent());
|
||||
folder = file.getParentFile();
|
||||
files = listSketchFiles(true);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue