This repository was archived by the owner on Mar 27, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ limitations under the License.
17
17
package cmd
18
18
19
19
import (
20
+ "errors"
20
21
"fmt"
21
22
"os"
22
23
"strings"
@@ -50,7 +51,7 @@ var analyzeCmd = &cobra.Command{
50
51
51
52
func checkAnalyzeArgNum (args []string ) error {
52
53
if len (args ) != 1 {
53
- return fmt . Errorf ("'analyze' requires one image as an argument: container-diff analyze [image]" )
54
+ return errors . New ("'analyze' requires one image as an argument: container-diff analyze [image]" )
54
55
}
55
56
return nil
56
57
}
Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ limitations under the License.
17
17
package cmd
18
18
19
19
import (
20
+ "errors"
20
21
"fmt"
21
22
"os"
22
23
"strings"
@@ -51,7 +52,7 @@ var diffCmd = &cobra.Command{
51
52
52
53
func checkDiffArgNum (args []string ) error {
53
54
if len (args ) != 2 {
54
- return fmt . Errorf ("'diff' requires two images as arguments: container-diff diff [image1] [image2]" )
55
+ return errors . New ("'diff' requires two images as arguments: container-diff diff [image1] [image2]" )
55
56
}
56
57
return nil
57
58
}
You can’t perform that action at this time.
0 commit comments