File tree Expand file tree Collapse file tree 2 files changed +3
-8
lines changed
Expand file tree Collapse file tree 2 files changed +3
-8
lines changed Original file line number Diff line number Diff line change @@ -40,12 +40,8 @@ public static Stream GetStream(string relativePath)
4040 if ( string . IsNullOrEmpty ( manifestResourceName ) )
4141 throw new InvalidOperationException ( $ "Did not find required resource ending in '{ resourceName } ' in assembly '{ baseName } '.") ;
4242
43- var stream = Assembly . GetExecutingAssembly ( )
44- . GetManifestResourceStream ( manifestResourceName ) ;
45-
46- if ( stream == null )
43+ return
44+ Assembly . GetExecutingAssembly ( ) . GetManifestResourceStream ( manifestResourceName ) ??
4745 throw new InvalidOperationException ( $ "Did not find required resource '{ manifestResourceName } ' in assembly '{ baseName } '.") ;
48-
49- return stream ;
5046 }
5147}
Original file line number Diff line number Diff line change 1- using System ;
2- using System . Collections . Generic ;
1+ using System . Collections . Generic ;
32using System . IO ;
43using System . Linq ;
54using System . Text ;
You can’t perform that action at this time.
0 commit comments