Skip to content

Commit 8be4a30

Browse files
committed
Remove unnecessary src folder prepend
Based on #551
1 parent c2e3b85 commit 8be4a30

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

smithy-typescript-codegen/src/main/java/software/amazon/smithy/typescript/codegen/TypeScriptWriter.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515

1616
package software.amazon.smithy.typescript.codegen;
1717

18-
import java.nio.file.Paths;
1918
import java.util.function.BiFunction;
2019
import java.util.function.UnaryOperator;
2120
import software.amazon.smithy.codegen.core.CodegenException;
@@ -70,9 +69,6 @@ public static final class TypeScriptWriterFactory implements SymbolWriter.Factor
7069

7170
@Override
7271
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-
}
7672
boolean attribution = filename.endsWith(".ts") || filename.endsWith(".tsx");
7773
// TODO: Attribution accounts for tsx too, but moduleName doesn't.
7874
String moduleName = filename.endsWith(".ts") ? filename.substring(0, filename.length() - 3) : filename;

0 commit comments

Comments
 (0)