diff --git a/internal/static/usecase/static_ucase.go b/internal/static/usecase/static_ucase.go index 68c8ff6..fa91c4a 100644 --- a/internal/static/usecase/static_ucase.go +++ b/internal/static/usecase/static_ucase.go @@ -21,9 +21,7 @@ func NewStaticUseCase(store static.Repository) static.UseCase { } func (ucase *staticUseCase) Do(ctx context.Context, p string) (*domain.Static, error) { - p = strings.TrimPrefix(path.Clean(p), "/") - - s, err := ucase.store.Get(ctx, p) + s, err := ucase.store.Get(ctx, strings.TrimPrefix(path.Clean(p), "/")) if err != nil { return nil, fmt.Errorf("cannot get static file: %w", err) }