Skip to content

Commit 44a8553

Browse files
committed
Remove unnecessary src folder prepend in useShapeWriter
The SymbolProvider(SymbolVisitor) also includes the src folder, so this is unnecessary.
1 parent 078a230 commit 44a8553

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

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

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,9 +91,6 @@ void useShapeWriter(Shape shape, Consumer<TypeScriptWriter> writerConsumer) {
9191
// Checkout/create the appropriate writer for the shape.
9292
Symbol symbol = symbolProvider.toSymbol(shape);
9393
String fileName = symbol.getDefinitionFile();
94-
if (!fileName.startsWith(Paths.get(".", CodegenUtils.SOURCE_FOLDER).toString())) {
95-
fileName = Paths.get(".", CodegenUtils.SOURCE_FOLDER, fileName).toString();
96-
}
9794
TypeScriptWriter writer = checkoutWriter(fileName);
9895

9996
// Add any needed DECLARE symbols.

0 commit comments

Comments
 (0)