mirror of
https://github.com/gotenberg/gotenberg.git
synced 2026-08-16 12:22:17 +01:00
fix(lint): non-used method in tests
This commit is contained in:
@@ -1005,14 +1005,3 @@ func InitializeScenario(ctx *godog.ScenarioContext) {
|
|||||||
return ctx, nil
|
return ctx, nil
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
func (s *scenario) getPath(name string) (string, error) {
|
|
||||||
path := fmt.Sprintf("%s/%s/%s", s.workdir, s.resp.Header().Get("Gotenberg-Trace"), name)
|
|
||||||
|
|
||||||
_, err := os.Stat(path)
|
|
||||||
if os.IsNotExist(err) {
|
|
||||||
return "", fmt.Errorf("PDF %q does not exist", path)
|
|
||||||
}
|
|
||||||
|
|
||||||
return path, nil
|
|
||||||
}
|
|
||||||
|
|||||||
Reference in New Issue
Block a user