mirror of
https://github.com/MichaelMure/git-bug.git
synced 2024-12-14 17:51:44 +03:00
Update repository/mock_repo.go
Co-Authored-By: Michael Muré <batolettre@gmail.com>
This commit is contained in:
parent
07cc5e4100
commit
acfd8ffdd7
@ -103,7 +103,7 @@ func (r *mockRepoForTest) ReadConfigString(key string) (string, error) {
|
||||
return val, nil
|
||||
}
|
||||
|
||||
// RmConfig remove all key/value pair matching the key prefix
|
||||
// RmConfigs remove all key/value pair matching the key prefix
|
||||
func (r *mockRepoForTest) RmConfigs(keyPrefix string) error {
|
||||
for key := range r.config {
|
||||
if strings.HasPrefix(key, keyPrefix) {
|
||||
|
Loading…
Reference in New Issue
Block a user