Skip to content

Commit

Permalink
SourceProssesor without processor should be marked as error
Browse files Browse the repository at this point in the history
Signed-off-by: khanhtc1202 <[email protected]>
  • Loading branch information
khanhtc1202 committed Apr 4, 2024
1 parent 8a4f3e9 commit c63a47a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/app/piped/sourceprocesser/sourceprocesser.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ func NewSourceProcessor(appDir string, templateProcessors ...SourceTemplateProce

func (p *processor) Process() error {
if len(p.templateProcessors) == 0 {
return nil
return fmt.Errorf("no template processor was specified")
}

Check warning on line 54 in pkg/app/piped/sourceprocesser/sourceprocesser.go

View check run for this annotation

Codecov / codecov/patch

pkg/app/piped/sourceprocesser/sourceprocesser.go#L53-L54

Added lines #L53 - L54 were not covered by tests

var targets []string
Expand Down

0 comments on commit c63a47a

Please sign in to comment.