Skip to content

Commit

Permalink
Fix new lints
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperSandro2000 committed Feb 7, 2024
1 parent b7a305b commit f3b4332
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/resource/out.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ package resource

import (
"context"
"errors"
"fmt"
"io"
"net/http"
Expand Down Expand Up @@ -116,7 +117,7 @@ func Out(ctx context.Context, request OutRequest, sourceDir string) (*OutRespons

func prepareFileSource(request OutRequest, sourceDir string) (string, error) {
if request.Params.From == "" {
return "", fmt.Errorf("required parameter 'from' missing")
return "", errors.New("required parameter 'from' missing")
}

from, err := regexp.Compile(request.Params.From)
Expand Down

0 comments on commit f3b4332

Please sign in to comment.