Skip to content

Commit 829c0c0

Browse files
committed
refactor: use FileStore path directly
1 parent bbb97a7 commit 829c0c0

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

src/main/java/org/javacs/FileStore.java

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -271,9 +271,6 @@ public static String contents(Path file) {
271271
}
272272

273273
static InputStream inputStream(Path file) {
274-
var uri = file.toUri();
275-
file = Paths.get(uri);
276-
277274
if (activeDocuments.containsKey(file)) {
278275
var string = activeDocuments.get(file).content;
279276
var bytes = string.getBytes();
@@ -291,9 +288,6 @@ static InputStream inputStream(Path file) {
291288
}
292289

293290
static BufferedReader bufferedReader(Path file) {
294-
var uri = file.toUri();
295-
file = Paths.get(uri);
296-
297291
if (activeDocuments.containsKey(file)) {
298292
var string = activeDocuments.get(file).content;
299293
return new BufferedReader(new StringReader(string));

0 commit comments

Comments
 (0)