mirror of
https://github.com/gotenberg/gotenberg.git
synced 2026-08-17 20:52:14 +01:00
removing redundant if err != nil
This commit is contained in:
@@ -114,9 +114,5 @@ func (c *Converter) Convert() (string, error) {
|
|||||||
|
|
||||||
// Clear removes all file inside its working directory.
|
// Clear removes all file inside its working directory.
|
||||||
func (c *Converter) Clear() error {
|
func (c *Converter) Clear() error {
|
||||||
if err := os.RemoveAll(c.workingDir); err != nil {
|
return os.RemoveAll(c.workingDir)
|
||||||
return err
|
|
||||||
}
|
|
||||||
|
|
||||||
return nil
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user