mirror of
https://github.com/gotenberg/gotenberg.git
synced 2026-08-08 00:22: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.
|
||||
func (c *Converter) Clear() error {
|
||||
if err := os.RemoveAll(c.workingDir); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
return nil
|
||||
return os.RemoveAll(c.workingDir)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user