Skip to content

Commit

Permalink
[Delete] inappropriate conditional operators
Browse files Browse the repository at this point in the history
  • Loading branch information
RyosukeHomma authored and olosegres committed Nov 22, 2022
1 parent 2f8093c commit 23a0598
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/switchCasePropertyMappers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ export class SwitchCaseModelMapper extends ModelPropertiesMapper implements IMod
const converted = {};
Object.entries(stuff).forEach(([propName, value]) => {
const kebabName = this.convertFromCamelCaseString(propName);
converted[kebabName] = isPlainObject(value) ? this.convertFromCamelCase(value): value;
converted[kebabName] = this.convertFromCamelCase(value);
})
return converted;
}
Expand Down Expand Up @@ -173,7 +173,7 @@ export class SwitchCaseJsonMapper extends JsonPropertiesMapper implements IJsonP
const converted = {};
Object.entries(stuff).forEach(([propName, value]) => {
const camelName = this.convertToCamelCaseString(propName);
converted[camelName] = isPlainObject(value) ? this.convertToCamelCase(value): value;
converted[camelName] = this.convertToCamelCase(value);
});
return converted;
}
Expand Down

0 comments on commit 23a0598

Please sign in to comment.