nolint
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
parent
73fc3d34f0
commit
57c2a5b95f
1
util.go
1
util.go
@ -153,6 +153,7 @@ func newPathRequest(path string, method string, body string, msg interface{}, ta
|
||||
var b strings.Builder
|
||||
for _, fld := range tpl {
|
||||
_, _ = b.WriteRune('/')
|
||||
// nolint: nestif
|
||||
if fld[0] == '{' && fld[len(fld)-1] == '}' {
|
||||
if v, ok := fieldsmap[fld[1:len(fld)-1]]; ok {
|
||||
if v != "" {
|
||||
|
Loading…
x
Reference in New Issue
Block a user