Skip to content

Commit

Permalink
remotefiles: remove redundant field from remoteFileResponseFull
Browse files Browse the repository at this point in the history
  • Loading branch information
ledmonster committed Dec 31, 2020
1 parent baab722 commit 46dc7e1
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions remotefiles.go
Expand Up @@ -69,8 +69,7 @@ type ListRemoteFilesParameters struct {
type remoteFileResponseFull struct {
RemoteFile `json:"file"`
Paging `json:"paging"`
Files []RemoteFile `json:"files"`
Metadata ResponseMetadata `json:"response_metadata"`
Files []RemoteFile `json:"files"`
SlackResponse
}

Expand Down Expand Up @@ -156,7 +155,7 @@ func (api *Client) ListRemoteFilesContext(ctx context.Context, params ListRemote
return nil, nil, err
}

params.Cursor = response.Metadata.Cursor
params.Cursor = response.SlackResponse.ResponseMetadata.Cursor

return response.Files, &params, nil
}
Expand Down

0 comments on commit 46dc7e1

Please sign in to comment.