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

Method ReadBool

repository/config.go:103–112  ·  view source on GitHub ↗
(key string)

Source from the content-addressed store, hash-verified

101}
102
103func (m *mergedConfig) ReadBool(key string) (bool, error) {
104 v, err := m.local.ReadBool(key)
105 if err == nil {
106 return v, nil
107 }
108 if !errors.Is(err, ErrNoConfigEntry) && !errors.Is(err, ErrMultipleConfigEntry) {
109 return false, err
110 }
111 return m.global.ReadBool(key)
112}
113
114func (m *mergedConfig) ReadString(key string) (string, error) {
115 val, err := m.local.ReadString(key)

Callers

nothing calls this directly

Calls 1

ReadBoolMethod · 0.65

Tested by

no test coverage detected