Skip to content

Commit 3a271b1

Browse files
committed
lfsapi: don't export '(Creds) Buffer()'
1 parent 7d32b5c commit 3a271b1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lfsapi/creds.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ type CredentialHelper interface {
1515

1616
type Creds map[string]string
1717

18-
func (c Creds) Buffer() *bytes.Buffer {
18+
func bufferCreds(c Creds) *bytes.Buffer {
1919
buf := new(bytes.Buffer)
2020

2121
for k, v := range c {
@@ -49,7 +49,7 @@ func (h *commandCredentialHelper) Approve(creds Creds) error {
4949
func (h *commandCredentialHelper) exec(subcommand string, input Creds) (Creds, error) {
5050
output := new(bytes.Buffer)
5151
cmd := exec.Command("git", "credential", subcommand)
52-
cmd.Stdin = input.Buffer()
52+
cmd.Stdin = bufferCreds(input)
5353
cmd.Stdout = output
5454
/*
5555
There is a reason we don't hook up stderr here:

0 commit comments

Comments
 (0)