MCPcopy
hub / github.com/wavetermdev/waveterm / isTrailingCommaError

Function isTrailingCommaError

pkg/wconfig/settingsconfig.go:446–458  ·  view source on GitHub ↗
(barr []byte, offset int)

Source from the content-addressed store, hash-verified

444}
445
446func isTrailingCommaError(barr []byte, offset int) bool {
447 if offset >= len(barr) {
448 offset = offset - 1
449 }
450 offset = goBackWS(barr, offset)
451 if barr[offset] == '}' {
452 offset = goBackWS(barr, offset)
453 if barr[offset] == ',' {
454 return true
455 }
456 }
457 return false
458}
459
460func resolveEnvReplacements(m waveobj.MetaMapType) {
461 if m == nil {

Callers 1

readConfigHelperFunction · 0.85

Calls 1

goBackWSFunction · 0.85

Tested by

no test coverage detected