Skip to content

Commit

Permalink
improve
Browse files Browse the repository at this point in the history
  • Loading branch information
sysulq committed Feb 19, 2024
1 parent 9467fd3 commit eda9f82
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions cmd/kod/internal/struct2interface.go
Original file line number Diff line number Diff line change
Expand Up @@ -331,10 +331,6 @@ func Struct2Interface(cmd *cobra.Command, dir string) error {
return fmt.Errorf("makeFile error: %s", err.Error())
}

if result == nil {
return nil
}

if obj, ok := mapDirPath[filepath.Dir(path)+result.PkgName]; ok {

obj.AllImports = append(obj.AllImports, result.AllImports...)
Expand Down

0 comments on commit eda9f82

Please sign in to comment.