MCPcopy Create free account
hub / github.com/git-bug/git-bug / ReadBool

Method ReadBool

repository/gogit_config.go:99–106  ·  view source on GitHub ↗
(key string)

Source from the content-addressed store, hash-verified

97}
98
99func (cr *goGitConfigReader) ReadBool(key string) (bool, error) {
100 val, err := cr.ReadString(key)
101 if err != nil {
102 return false, err
103 }
104
105 return strconv.ParseBool(val)
106}
107
108func (cr *goGitConfigReader) ReadString(key string) (string, error) {
109 cfg, err := cr.getConfig()

Callers

nothing calls this directly

Calls 1

ReadStringMethod · 0.95

Tested by

no test coverage detected