Skip to content

Commit

Permalink
fix: restore "NewInpsectHandler" function name
Browse files Browse the repository at this point in the history
Signed-off-by: Junjie Gao <junjiegao@microsoft.com>
  • Loading branch information
JeyJeyGao committed Jan 23, 2025
1 parent 8f5d88f commit 1adc392
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cmd/notation/inspect.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ func runInspect(command *cobra.Command, opts *inspectOpts) error {
// set log level
ctx := opts.LoggingFlagOpts.InitializeLogger(command.Context())

displayHandler, err := display.NewMetadataInpsectHandler(opts.Printer, opts.Format)
displayHandler, err := display.NewInpsectHandler(opts.Printer, opts.Format)
if err != nil {
return err
}
Expand Down
4 changes: 2 additions & 2 deletions cmd/notation/internal/display/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ import (
"github.com/notaryproject/notation/cmd/notation/internal/option"
)

// NewMetadataInpsectHandler creates a new InspectHandler based on the output
// NewInpsectHandler creates a new InspectHandler based on the output
// format.
func NewMetadataInpsectHandler(printer *output.Printer, format option.Format) (metadata.InspectHandler, error) {
func NewInpsectHandler(printer *output.Printer, format option.Format) (metadata.InspectHandler, error) {
switch option.FormatType(format.CurrentFormat) {
case option.FormatTypeJSON:
return json.NewInspectHandler(printer), nil
Expand Down

0 comments on commit 1adc392

Please sign in to comment.