Skip to content

Commit

Permalink
Fix regression
Browse files Browse the repository at this point in the history
  • Loading branch information
knocte committed Sep 4, 2024
1 parent 0737656 commit 6b500c2
Showing 1 changed file with 2 additions and 32 deletions.
34 changes: 2 additions & 32 deletions fsxc/Fsxc.fs
Original file line number Diff line number Diff line change
Expand Up @@ -629,19 +629,8 @@ let fsi = { CommandLineArgs = System.Environment.GetCommandLineArgs() }

match action with
| PreProcessorAction.Skip ->
File.AppendAllText(
autogeneratedFile.FullName,
startCommentInFSharp
+ line
+ Environment.NewLine
)
()
| PreProcessorAction.Load fileName ->
File.AppendAllText(
autogeneratedFile.FullName,
startCommentInFSharp
+ line
+ Environment.NewLine
)

let file =
FileInfo(
Expand All @@ -656,13 +645,6 @@ let fsi = { CommandLineArgs = System.Environment.GetCommandLineArgs() }
#if LEGACY_FRAMEWORK
| PreProcessorAction.NugetRef(nugetPkgName, version) ->

File.AppendAllText(
autogeneratedFile.FullName,
startCommentInFSharp
+ line
+ Environment.NewLine
)

let downloadedRef =
nugetRefToNormalRef
origScript
Expand All @@ -673,22 +655,10 @@ let fsi = { CommandLineArgs = System.Environment.GetCommandLineArgs() }
#else

| PreProcessorAction.NugetRef(_nugetPkgName, _version) ->
File.AppendAllText(
autogeneratedFile.FullName,
startCommentInFSharp
+ line
+ Environment.NewLine
)
()
#endif
| PreProcessorAction.Ref refName ->

File.AppendAllText(
autogeneratedFile.FullName,
startCommentInFSharp
+ line
+ Environment.NewLine
)

let maybeFile =
FileInfo(
Path.Combine(
Expand Down

0 comments on commit 6b500c2

Please sign in to comment.