Skip to content

Commit

Permalink
fix(property): remove warning (#393)
Browse files Browse the repository at this point in the history
  • Loading branch information
easonlin404 authored and pei0804 committed May 11, 2019
1 parent 2a7b9f4 commit 32df12c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
4 changes: 2 additions & 2 deletions debug.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@ func isRelease() bool {
return swagMode == release
}

//Println calls Output to print to the standard logger when release mode.
// Println calls Output to print to the standard logger when release mode.
func Println(v ...interface{}) {
if isRelease() {
log.Println(v...)
}
}

//Printf calls Output to print to the standard logger when release mode.
// Printf calls Output to print to the standard logger when release mode.
func Printf(format string, v ...interface{}) {
if isRelease() {
log.Printf(format, v...)
Expand Down
3 changes: 0 additions & 3 deletions property.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,6 @@ func parseFieldSelectorExpr(astTypeSelectorExpr *ast.SelectorExpr, parser *Parse
return propertyName{SchemaType: actualPrimitiveType, ArrayType: actualPrimitiveType}
}
}

Printf("%s is not supported. but it will be set with string temporary. Please report any problems.\n", astTypeSelectorExpr.Sel.Name)
return propertyName{SchemaType: "string", ArrayType: "string"}
}

Expand Down Expand Up @@ -92,7 +90,6 @@ func getPropertyName(expr ast.Expr, parser *Parser) propertyName {
}

if _, ok := expr.(*ast.MapType); ok { // if map
//TODO: support map
return propertyName{SchemaType: "object", ArrayType: "object"}
}

Expand Down

0 comments on commit 32df12c

Please sign in to comment.