File tree Expand file tree Collapse file tree 1 file changed +0
-4
lines changed
smithy-typescript-codegen/src/main/java/software/amazon/smithy/typescript/codegen Expand file tree Collapse file tree 1 file changed +0
-4
lines changed Original file line number Diff line number Diff line change 15
15
16
16
package software .amazon .smithy .typescript .codegen ;
17
17
18
- import java .nio .file .Paths ;
19
18
import java .util .function .BiFunction ;
20
19
import java .util .function .UnaryOperator ;
21
20
import software .amazon .smithy .codegen .core .CodegenException ;
@@ -70,9 +69,6 @@ public static final class TypeScriptWriterFactory implements SymbolWriter.Factor
70
69
71
70
@ Override
72
71
public TypeScriptWriter apply (String filename , String namespace ) {
73
- if (!filename .startsWith (Paths .get (CodegenUtils .SOURCE_FOLDER ).normalize ().toString ())) {
74
- filename = Paths .get (CodegenUtils .SOURCE_FOLDER , filename ).toString ();
75
- }
76
72
boolean attribution = filename .endsWith (".ts" ) || filename .endsWith (".tsx" );
77
73
// TODO: Attribution accounts for tsx too, but moduleName doesn't.
78
74
String moduleName = filename .endsWith (".ts" ) ? filename .substring (0 , filename .length () - 3 ) : filename ;
You can’t perform that action at this time.
0 commit comments