Skip to content

Commit 3e1ed8b

Browse files
Copilotsergey-tihon
andcommitted
Fix netstandard2.0 compatibility by using string overload for Contains
Co-authored-by: sergey-tihon <[email protected]>
1 parent 8bd3113 commit 3e1ed8b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/SwaggerProvider.DesignTime/Utils.fs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ module SchemaReader =
2626
else if RuntimeInformation.IsOSPlatform(OSPlatform.Windows) then
2727
// On Windows, a truly absolute path has a volume (C:\, D:\, etc.)
2828
// Paths like \path or /path are rooted but may be relative if they start with .. or .
29-
if root.Contains(':') then
29+
if root.Contains(":") then
3030
// Has drive letter, truly absolute
3131
true
3232
else
@@ -51,7 +51,7 @@ module SchemaReader =
5151
// On Windows, if path is like \path without drive, combine with drive from resolutionFolder
5252
if
5353
RuntimeInformation.IsOSPlatform(OSPlatform.Windows)
54-
&& not(Path.GetPathRoot(schemaPathRaw).Contains(':'))
54+
&& not(Path.GetPathRoot(schemaPathRaw).Contains(":"))
5555
then
5656
Path.Combine(Path.GetPathRoot resolutionFolder, schemaPathRaw.Substring 1)
5757
else

0 commit comments

Comments
 (0)