MCPcopy Index your code
hub / github.com/apache/answer / IsUsersIgnorePath

Function IsUsersIgnorePath

pkg/checker/path_ignore.go:48–51  ·  view source on GitHub ↗

IsUsersIgnorePath checks whether the username is in ignore path

(username string)

Source from the content-addressed store, hash-verified

46
47// IsUsersIgnorePath checks whether the username is in ignore path
48func IsUsersIgnorePath(username string) bool {
49 ignorePathInit.Do(initPathIgnore)
50 return slices.Contains(pathIgnore.Users, username)
51}
52
53// IsQuestionsIgnorePath checks whether the questionID is in ignore path
54func IsQuestionsIgnorePath(questionID string) bool {

Callers 3

UserInfoMethod · 0.92
EditUserProfileMethod · 0.92
UpdateInfoMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected