Skip to content

Commit

Permalink
Fixed the merge build
Browse files Browse the repository at this point in the history
  • Loading branch information
MikaelMayer committed Jan 10, 2024
1 parent c7fb7c0 commit 770da14
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
5 changes: 1 addition & 4 deletions Source/DafnyCore/AST/Grammar/IFileSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,7 @@ private OnDiskFileSystem() {
}

public TextReader ReadFile(Uri uri) {
var reader = new StreamReader(uri.LocalPath);
var str = reader.ReadToEnd();
reader.Close();
return new StringReader(str);
return new StreamReader(uri.LocalPath);
}

public bool Exists(Uri path) {
Expand Down
1 change: 0 additions & 1 deletion Source/DafnyDriver/CompilerDriver.cs
Original file line number Diff line number Diff line change
Expand Up @@ -596,7 +596,6 @@ public static void WriteFile(string filename, string text, string moreText = nul
if (moreText != null) {
target.Write(moreText);
}
target.Close();
}

private static void CheckFilenameIsLegal(string filename) {
Expand Down

0 comments on commit 770da14

Please sign in to comment.