Skip to content

Commit

Permalink
Tiny improvement over PR #148
Browse files Browse the repository at this point in the history
convertToAbsolutePath is now taking path directly in relative path case
instead of converting file back to a relative path string.

Signed-off-by: Max Bureck <[email protected]>
  • Loading branch information
Boereck authored and mickaelistria committed Oct 15, 2018
1 parent 37fff49 commit bc063ea
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ public static File convertToAbsolutePath(String path) {
final File file = new File(path);
if (file.isAbsolute())
return file;
return ResourcesPlugin.getWorkspace().getRoot().findMember(file.getPath()).getRawLocation().toFile();
return ResourcesPlugin.getWorkspace().getRoot().findMember(path).getRawLocation().toFile();
}

/**
Expand Down

0 comments on commit bc063ea

Please sign in to comment.