Skip to content

Commit caaeee3

Browse files
committed
fix: lint fix
1 parent 04f5cd3 commit caaeee3

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

src/generators/java/renderers/ClassRenderer.ts

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,13 @@ export class ClassRenderer extends JavaRenderer<ConstrainedObjectModel> {
4545
this.dependencyManager.addModelDependency(i);
4646
}
4747

48-
const inheritanceKeyworkd = this.model.options.isExtended ? 'extends' : 'implements';
48+
const inheritanceKeyworkd = this.model.options.isExtended
49+
? 'extends'
50+
: 'implements';
4951

50-
return `public ${abstractType} ${this.model.name} ${inheritanceKeyworkd} ${parents
51-
.map((i) => i.name)
52-
.join(', ')} {
52+
return `public ${abstractType} ${
53+
this.model.name
54+
} ${inheritanceKeyworkd} ${parents.map((i) => i.name).join(', ')} {
5355
${this.indent(this.renderBlock(content, 2))}
5456
}`;
5557
}
@@ -166,7 +168,7 @@ export const isDiscriminatorOrDictionary = (
166168
property: ConstrainedObjectPropertyModel
167169
): boolean =>
168170
model.options.discriminator?.discriminator ===
169-
property.unconstrainedPropertyName ||
171+
property.unconstrainedPropertyName ||
170172
property.property instanceof ConstrainedDictionaryModel;
171173

172174
export const JAVA_DEFAULT_CLASS_PRESET: ClassPresetType<JavaOptions> = {

0 commit comments

Comments
 (0)