We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2520fa8 commit 7125af3Copy full SHA for 7125af3
test/Microsoft.OpenApi.Readers.Tests/Resources.cs
@@ -43,15 +43,7 @@ public static Stream GetStream(string fileName)
43
private static string GetPath(string fileName)
44
{
45
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;
+ return typeof(Resources).Namespace + pathSeparator + fileName.Replace('/', '.');
55
}
56
57
0 commit comments