Skip to content

Commit 7125af3

Browse files
committed
resolve the comments
1 parent 2520fa8 commit 7125af3

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

test/Microsoft.OpenApi.Readers.Tests/Resources.cs

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -43,15 +43,7 @@ public static Stream GetStream(string fileName)
4343
private static string GetPath(string fileName)
4444
{
4545
const string pathSeparator = ".";
46-
string projectDefaultNamespace = typeof(Resources).Namespace;
47-
48-
if (fileName.Contains("/"))
49-
{
50-
string temp = fileName.Replace('/', '.');
51-
return projectDefaultNamespace + pathSeparator + temp;
52-
}
53-
54-
return projectDefaultNamespace + pathSeparator + fileName;
46+
return typeof(Resources).Namespace + pathSeparator + fileName.Replace('/', '.');
5547
}
5648
}
5749
}

0 commit comments

Comments
 (0)