Skip to content

Commit

Permalink
Format
Browse files Browse the repository at this point in the history
  • Loading branch information
andrii-balitskyi committed Sep 30, 2024
1 parent 0a3bb00 commit abcc58c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/code-sample/java.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export const createJavaRequest = (
return `seam.${pathParts.map((p) => camelCase(p)).join('().')}(${clientArgs});`
}

const getRequestBuilderName = (path: string) => {
const getRequestBuilderName = (path: string): string => {
const requestBuilderNameSuffix = 'Request'

return isPathNested(path)
Expand All @@ -32,7 +32,7 @@ const isPathNested = (path: string): boolean =>
path.split('/').slice(1).length > 2

const formatJavaArgs = (jsonParams: NonNullJson): string =>
Object.entries(jsonParams)
Object.entries(jsonParams as Record<string, Json>)
.map(([paramKey, paramValue]) => {
const formattedValue = formatJavaValue(paramValue)
return `.${camelCase(paramKey)}(${formattedValue})`
Expand Down

0 comments on commit abcc58c

Please sign in to comment.