Skip to content

Commit

Permalink
Remove unused preRunFn, chainPreRuns
Browse files Browse the repository at this point in the history
  • Loading branch information
webmaster128 committed Apr 14, 2023
1 parent e1105cc commit 4d20e9d
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions x/wasm/module.go
Original file line number Diff line number Diff line change
Expand Up @@ -292,18 +292,3 @@ func CheckLibwasmVersion(cmd *cobra.Command, args []string) error {
}
return nil
}

type preRunFn func(cmd *cobra.Command, args []string) error

func chainPreRuns(pfns ...preRunFn) preRunFn {
return func(cmd *cobra.Command, args []string) error {
for _, pfn := range pfns {
if pfn != nil {
if err := pfn(cmd, args); err != nil {
return err
}
}
}
return nil
}
}

0 comments on commit 4d20e9d

Please sign in to comment.