File tree 6 files changed +8
-8
lines changed
6 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ var cloudfrontCmd = &cobra.Command{
63
63
for _ , distribution := range distributions {
64
64
var val string
65
65
66
- if * distribution .Distribution .DistributionConfig .Enabled == false {
66
+ if ! * distribution .Distribution .DistributionConfig .Enabled {
67
67
val = "disabled"
68
68
rc = 2
69
69
totalCrit ++
Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ var ec2InstancesCmd = &cobra.Command{
50
50
summary += fmt .Sprintf (" %d %s " , count , state )
51
51
ctr += count
52
52
if ctr != len (instances .Instances ) {
53
- summary += fmt . Sprintf ( "-" )
53
+ summary += "-"
54
54
}
55
55
}
56
56
Original file line number Diff line number Diff line change @@ -78,7 +78,7 @@ var s3BucketCmd = &cobra.Command{
78
78
}
79
79
80
80
if len (buckets .Buckets ) == 0 {
81
- check .ExitError (fmt .Errorf ("No buckets available" ))
81
+ check .ExitError (fmt .Errorf ("no buckets available" ))
82
82
}
83
83
84
84
critical , err := internal .ParseThreshold (CriticalBucketSize )
@@ -124,7 +124,7 @@ var s3BucketCmd = &cobra.Command{
124
124
125
125
output += objectsOutput .GetBucketOutput (bucketSize , rc )
126
126
127
- if len (buckets .Buckets ) > 1 && ! (len (buckets .Buckets ) = = idx + 1 ) {
127
+ if len (buckets .Buckets ) > 1 && (len (buckets .Buckets ) ! = idx + 1 ) {
128
128
output += "\n "
129
129
}
130
130
Original file line number Diff line number Diff line change @@ -89,7 +89,7 @@ var s3ObjectCmd = &cobra.Command{
89
89
}
90
90
91
91
if len (buckets .Buckets ) == 0 {
92
- check .ExitError (fmt .Errorf ("No buckets available" ))
92
+ check .ExitError (fmt .Errorf ("no buckets available" ))
93
93
}
94
94
95
95
critical , err := internal .ParseThreshold (CriticalObjectSize )
Original file line number Diff line number Diff line change @@ -96,7 +96,7 @@ var statusCmd = &cobra.Command{
96
96
c := & http.Client {}
97
97
98
98
if Region == "" && ! contains (cliStatusConfig .Service , globalServices ) {
99
- check .ExitError (fmt .Errorf ("Region required for regional services" ))
99
+ check .ExitError (fmt .Errorf ("region required for regional services" ))
100
100
}
101
101
102
102
// Using + concatenation since the JoinPath will add / inbetween
@@ -115,7 +115,7 @@ var statusCmd = &cobra.Command{
115
115
}
116
116
117
117
if resp .StatusCode != http .StatusOK {
118
- check .ExitError (fmt .Errorf ("Could not get %s - Error: %d" , feedUrl , resp .StatusCode ))
118
+ check .ExitError (fmt .Errorf ("could not get %s - Error: %d" , feedUrl , resp .StatusCode ))
119
119
}
120
120
121
121
defer resp .Body .Close ()
Original file line number Diff line number Diff line change 8
8
"github.com/aws/aws-sdk-go/service/s3"
9
9
)
10
10
11
- var ErrBucketNotFound = errors .New ("No such Bucket" )
11
+ var ErrBucketNotFound = errors .New ("no such Bucket" )
12
12
13
13
type S3Client struct {
14
14
S3Client * s3.S3
You can’t perform that action at this time.
0 commit comments