Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitb3d2c59

Browse files
committed
Return error on invalid settings
1 parent8b5075b commitb3d2c59

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

‎gen.go‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -409,6 +409,9 @@ func buildQueries(conf Config, req *plugin.CodeGenRequest, structs []Struct) ([]
409409
ifconf.QueryParameterLimit!=nil {
410410
qpl=int(*conf.QueryParameterLimit)
411411
}
412+
ifqpl<0 {
413+
returnnil,errors.New("invalid query parameter limit")
414+
}
412415
iflen(query.Params)>qpl||qpl==0 {
413416
varcols []pyColumn
414417
for_,p:=rangequery.Params {

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp