Skip to content

Commit

Permalink
format code
Browse files Browse the repository at this point in the history
Change-Id: Ie323921c0565485bcadeffc8f732c840cae48ca2
  • Loading branch information
hanzeINGH committed Jan 3, 2025
1 parent 793dfef commit e42d9c3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion datasets_images_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -127,5 +127,4 @@ func TestDatasetsImages(t *testing.T) {
assert.Equal(t, 2, pager.Total())
assert.False(t, pager.HasMore())
})

}
6 changes: 3 additions & 3 deletions files.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ type FileInfo struct {
FileName string `json:"file_name"`
}

type FileInterface interface {
type FileTypes interface {
io.Reader
Name() string
}
Expand All @@ -68,10 +68,10 @@ func (r *implFileInterface) Name() string {
}

type UploadFilesReq struct {
File FileInterface
File FileTypes
}

func NewUploadFile(reader io.Reader, fileName string) FileInterface {
func NewUploadFile(reader io.Reader, fileName string) FileTypes {
return &implFileInterface{
Reader: reader,
fileName: fileName,
Expand Down

0 comments on commit e42d9c3

Please sign in to comment.