Skip to content
This repository was archived by the owner on Jun 8, 2019. It is now read-only.

Commit cdbef99

Browse files
jonasfranzappleboy
authored andcommitted
Remove unused imports and use a non-pointer reader (#96)
* Fix #95 by removing unused imports and using a non-pointer reader Signed-off-by: Jonas Franz <[email protected]> (cherry picked from commit f46f7c8) Signed-off-by: Jonas Franz <[email protected]> * Replace *io.Reader with io.Reader Signed-off-by: Jonas Franz <[email protected]>
1 parent c026786 commit cdbef99

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

gitea/attachment.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import (
88
"encoding/json"
99
"fmt"
1010
"io"
11-
"io/ioutil"
1211
"mime/multipart"
1312
"net/http"
1413
"time"
@@ -46,7 +45,7 @@ func (c *Client) GetReleaseAttachment(user, repo string, release int64, id int64
4645
}
4746

4847
// CreateReleaseAttachment creates an attachment for the given release
49-
func (c *Client) CreateReleaseAttachment(user, repo string, release int64, file *io.Reader, filename string) (*Attachment, error) {
48+
func (c *Client) CreateReleaseAttachment(user, repo string, release int64, file io.Reader, filename string) (*Attachment, error) {
5049
// Write file to body
5150
body := new(bytes.Buffer)
5251
writer := multipart.NewWriter(body)

0 commit comments

Comments
 (0)