Skip to content

Commit 8fe561c

Browse files
committed
fix 4.6.1 issue
1 parent 9deb7f6 commit 8fe561c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Tocsoft.GraphQLCodeGen.Cli/TemplateEngine.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public TemplateEngine(IEnumerable<string> templates, IDictionary<string, string>
5555
string target = args[0].ToString();
5656

5757
var currentDirectory = Path.GetDirectoryName(model.OutputPath);
58-
if (!currentDirectory.EndsWith(Path.DirectorySeparatorChar))
58+
if (!currentDirectory.EndsWith($"{Path.DirectorySeparatorChar}"))
5959
{
6060
currentDirectory += Path.DirectorySeparatorChar;
6161
}
@@ -64,7 +64,7 @@ public TemplateEngine(IEnumerable<string> templates, IDictionary<string, string>
6464
if (target.StartsWith("~/"))
6565
{
6666
var root = model.RootPath;
67-
if (!root.EndsWith(Path.DirectorySeparatorChar))
67+
if (!root.EndsWith($"{Path.DirectorySeparatorChar}"))
6868
{
6969
root += Path.DirectorySeparatorChar;
7070
}

0 commit comments

Comments
 (0)