Skip to content

Commit 0ed3cc7

Browse files
committed
removed unused params
1 parent 4ab6976 commit 0ed3cc7

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

goparser/types.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ func generateJSONValue(field *GoField, indent int) string {
271271
// Handle slices and arrays
272272
if strings.HasPrefix(typeStr, "[]") {
273273
elemType := strings.TrimPrefix(typeStr, "[]")
274-
elemValue := generateExampleValueForType(elemType, indent)
274+
elemValue := generateExampleValueForType(elemType)
275275
return "[" + elemValue + "]"
276276
}
277277

@@ -280,7 +280,7 @@ func generateJSONValue(field *GoField, indent int) string {
280280
return `{}`
281281
}
282282

283-
return generateExampleValueForType(typeStr, indent)
283+
return generateExampleValueForType(typeStr)
284284
}
285285

286286
func generateYAMLValue(field *GoField, indent int) string {
@@ -304,7 +304,7 @@ func generateYAMLValue(field *GoField, indent int) string {
304304
// Handle slices and arrays
305305
if strings.HasPrefix(typeStr, "[]") {
306306
elemType := strings.TrimPrefix(typeStr, "[]")
307-
elemValue := generateExampleValueForType(elemType, indent)
307+
elemValue := generateExampleValueForType(elemType)
308308
return "\n" + makeIndent(indent+1) + "- " + elemValue
309309
}
310310

@@ -313,10 +313,10 @@ func generateYAMLValue(field *GoField, indent int) string {
313313
return "{}"
314314
}
315315

316-
return generateExampleValueForType(typeStr, indent)
316+
return generateExampleValueForType(typeStr)
317317
}
318318

319-
func generateExampleValueForType(typeStr string, indent int) string {
319+
func generateExampleValueForType(typeStr string) string {
320320
typeStr = strings.TrimSpace(typeStr)
321321

322322
// Handle basic types

0 commit comments

Comments
 (0)