Skip to content

Commit

Permalink
pr 3
Browse files Browse the repository at this point in the history
  • Loading branch information
ken90242 committed Oct 8, 2023
1 parent 9f203cc commit 163aec7
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tools-v2/pkg/cli/command/curvefs/warmup/list/list.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2022 NetEase Inc.
* Copyright (c) 2023 NetEase Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -140,8 +140,7 @@ func (lCmd *ListCommand) RunCommand(cmd *cobra.Command, args []string) error {
parts := strings.Split(entry, ":")

if len(parts) != 2 {
fmt.Println("Invalid entry:", entry)
continue
return fmt.Errorf("invalid entry: %s", entry)
}

row := make(map[string]string)
Expand Down

0 comments on commit 163aec7

Please sign in to comment.