Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
53
func
(s *jsonStack) replaceTop(item stackItem) {
54
if
len(*s) > 0 {
55
(*s)[len(*s)-1] = item
56
}
57
}
58
59
func
repairJson(data []byte) []byte {
60
if
len(data) == 0 {
Callers
1
repairJson
Function · 0.95
Calls
no outgoing calls
Tested by
no test coverage detected