Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/anomalyco/opencode
/ withSlash
Function
withSlash
packages/opencode/src/util/repository.ts:95–97 ·
view source on GitHub ↗
(input: string)
Source
from the content-addressed store, hash-verified
93
}
94
95
function
withSlash(input: string) {
96
return
input.endsWith(
"/"
) ? input : `${input}/`
97
}
98
99
function
githubRemote(pathname: string) {
100
const
base = process.env.OPENCODE_REPO_CLONE_GITHUB_BASE_URL
Callers
1
githubRemote
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected