Skip to content

Commit

Permalink
Set DefaultConfigVariables if interface name doesn't exist
Browse files Browse the repository at this point in the history
  • Loading branch information
sublee committed Aug 9, 2024
1 parent 797a933 commit 588f3c0
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions config/converter.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,10 +109,11 @@ func parseConverter(ctx *context, rawConverter *RawConverter, global RawLines) (

func initConverter(loader *pkgload.PackageLoader, rawConverter *RawConverter) (*Converter, error) {
c := &Converter{
FileName: rawConverter.FileName,
Package: rawConverter.PackagePath,
Methods: map[string]*Method{},
Location: rawConverter.Converter.Location,
FileName: rawConverter.FileName,
Package: rawConverter.PackagePath,
Methods: map[string]*Method{},
Location: rawConverter.Converter.Location,
ConverterConfig: DefaultConfigVariables,
}

if rawConverter.InterfaceName != "" {
Expand Down

0 comments on commit 588f3c0

Please sign in to comment.