Skip to content

Commit

Permalink
Update merge.go
Browse files Browse the repository at this point in the history
  • Loading branch information
andreaangiolillo committed Mar 8, 2024
1 parent 096c6c2 commit 9fa8573
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tools/cli/internal/cli/merge/merge.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
package merge

import (
"errors"
"fmt"
"log"
"mongodb/openapi/tools/cli/internal/cli/flag"
Expand All @@ -42,11 +41,11 @@ func (o *Opts) Run(_ []string) error {

func (o *Opts) PreRunE(_ []string) error {
if o.basePath == "" {
return errors.New(fmt.Sprintf("No base OAS detected. Please, use the flag %s to include the base OAS.", flag.Base))
return fmt.Errorf("No base OAS detected. Please, use the flag %s to include the base OAS.", flag.Base)
}

if o.externalPaths == nil {
return errors.New(fmt.Sprintf("No external OAS detected. Please, use the flag %s to include at least one OAS.", flag.External))
return fmt.Errorf(fmt.Sprintf("No external OAS detected. Please, use the flag %s to include at least one OAS.", flag.External)

Check failure on line 48 in tools/cli/internal/cli/merge/merge.go

View workflow job for this annotation

GitHub Actions / lint

missing ',' before newline in argument list (typecheck)
}

Check failure on line 49 in tools/cli/internal/cli/merge/merge.go

View workflow job for this annotation

GitHub Actions / lint

expected operand, found '}' (typecheck)

return nil

Check failure on line 51 in tools/cli/internal/cli/merge/merge.go

View workflow job for this annotation

GitHub Actions / lint

missing ',' in argument list (typecheck)
Expand Down

0 comments on commit 9fa8573

Please sign in to comment.