MCPcopy Index your code
hub / github.com/wavetermdev/waveterm / replaceTop

Method replaceTop

pkg/util/utilfn/partial.go:53–57  ·  view source on GitHub ↗
(item stackItem)

Source from the content-addressed store, hash-verified

51}
52
53func (s *jsonStack) replaceTop(item stackItem) {
54 if len(*s) > 0 {
55 (*s)[len(*s)-1] = item
56 }
57}
58
59func repairJson(data []byte) []byte {
60 if len(data) == 0 {

Callers 1

repairJsonFunction · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected