MCPcopy Index your code
hub / github.com/dataease/SQLBot / blockHeader

Function blockHeader

frontend/public/swagger-ui-bundle.js:34247–34251  ·  view source on GitHub ↗
(s, o)

Source from the content-addressed store, hash-verified

34245 }
34246 })()
34247 }
34248 function blockHeader(s, o) {
34249 var i = needIndentIndicator(s) ? String(o) : '',
34250 a = '\n' === s[s.length - 1]
34251 return i + (a && ('\n' === s[s.length - 2] || '\n' === s) ? '+' : a ? '' : '-') + '\n'
34252 }
34253 function dropEndingNewline(s) {
34254 return '\n' === s[s.length - 1] ? s.slice(0, -1) : s

Callers 1

writeScalarFunction · 0.85

Calls 1

needIndentIndicatorFunction · 0.85

Tested by

no test coverage detected