Removed unnecessary type re-implementations in favour of using generated types directly and providing aliases for import simplicity.
This commit is contained in:
@@ -18,8 +18,9 @@ type ConversionResult struct {
|
||||
func (c *Client) ConvertPPTXFile(ctx context.Context, localPPTXPath string) (*ConversionResult, error) {
|
||||
createRes, err := c.CreateConversion(
|
||||
ctx,
|
||||
filepath.Base(localPPTXPath),
|
||||
nil,
|
||||
&CreateConversionOptions{
|
||||
SourceFilename: filepath.Base(localPPTXPath),
|
||||
},
|
||||
)
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("create conversion: %w", err)
|
||||
|
||||
Reference in New Issue
Block a user