aboutsummaryrefslogtreecommitdiffstats
path: root/repository
diff options
context:
space:
mode:
authoramine <hilalyamine@gmail.com>2019-11-01 22:51:37 +0100
committeramine <hilalyamine@gmail.com>2019-11-01 22:51:37 +0100
commitf9f82957a78ea0d3cacddbc6914ce98b94ddf7bd (patch)
tree74c5f184df4fb27bec0d6f809ce9816ec133d80f /repository
parent60c6bd360f164b8f955b21cd1d0bc0cca6e5cb51 (diff)
downloadgit-bug-f9f82957a78ea0d3cacddbc6914ce98b94ddf7bd.tar.gz
repository: fix ineffectual assignment in git test
Diffstat (limited to 'repository')
-rw-r--r--repository/git_test.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/repository/git_test.go b/repository/git_test.go
index 88587a15..de442e39 100644
--- a/repository/git_test.go
+++ b/repository/git_test.go
@@ -15,12 +15,14 @@ func TestConfig(t *testing.T) {
assert.NoError(t, err)
val, err := repo.LocalConfig().ReadString("section.key")
+ assert.NoError(t, err)
assert.Equal(t, "value", val)
err = repo.LocalConfig().StoreString("section.true", "true")
assert.NoError(t, err)
val2, err := repo.LocalConfig().ReadBool("section.true")
+ assert.NoError(t, err)
assert.Equal(t, true, val2)
configs, err := repo.LocalConfig().ReadAll("section")