fixed json syntax error
This commit is contained in:
parent
3a6a33ea9a
commit
afa15461de
@ -117,13 +117,13 @@ func FenceMatch(hookName string, sw *scanWriter, fence *liveFenceSwitches, detai
|
||||
copy(resb, res)
|
||||
sw.wr.Reset()
|
||||
res = string(resb)
|
||||
if strings.HasPrefix(res, ",") {
|
||||
res = res[1:]
|
||||
}
|
||||
if sw.output == outputIDs {
|
||||
res = `{"id":` + res + `}`
|
||||
}
|
||||
sw.mu.Unlock()
|
||||
if strings.HasPrefix(res, ",") {
|
||||
res = res[1:]
|
||||
}
|
||||
|
||||
jskey := jsonString(details.key)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user