Skip to content

Commit 4c27c48

Browse files
committed
Fix typo
Signed-off-by: ialidzhikov <[email protected]>
1 parent 3bc1570 commit 4c27c48

File tree

3 files changed

+13
-12
lines changed

3 files changed

+13
-12
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,6 @@
1616
*.swp
1717
*.swo
1818
*~
19+
20+
# Vscode files
21+
.vscode

pkg/client/client_test.go

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -475,7 +475,7 @@ var _ = Describe("Client", func() {
475475
close(done)
476476
})
477477

478-
It("should fail if the object does not exists", func(done Done) {
478+
It("should fail if the object does not exist", func(done Done) {
479479
cl, err := client.New(cfg, client.Options{})
480480
Expect(err).NotTo(HaveOccurred())
481481
Expect(cl).NotTo(BeNil())
@@ -578,7 +578,7 @@ var _ = Describe("Client", func() {
578578

579579
close(done)
580580
})
581-
It("should fail if the object does not exists", func(done Done) {
581+
It("should fail if the object does not exist", func(done Done) {
582582
cl, err := client.New(cfg, client.Options{})
583583
Expect(err).NotTo(HaveOccurred())
584584
Expect(cl).NotTo(BeNil())
@@ -672,7 +672,7 @@ var _ = Describe("Client", func() {
672672
close(done)
673673
})
674674

675-
It("should fail if the object does not exists", func(done Done) {
675+
It("should fail if the object does not exist", func(done Done) {
676676
cl, err := client.New(cfg, client.Options{})
677677
Expect(err).NotTo(HaveOccurred())
678678
Expect(cl).NotTo(BeNil())
@@ -791,7 +791,7 @@ var _ = Describe("Client", func() {
791791
close(done)
792792
})
793793

794-
It("should fail if the object does not exists", func(done Done) {
794+
It("should fail if the object does not exist", func(done Done) {
795795
cl, err := client.New(cfg, client.Options{})
796796
Expect(err).NotTo(HaveOccurred())
797797
Expect(cl).NotTo(BeNil())
@@ -860,7 +860,7 @@ var _ = Describe("Client", func() {
860860
close(done)
861861
})
862862

863-
It("should fail if the object does not exists", func(done Done) {
863+
It("should fail if the object does not exist", func(done Done) {
864864
cl, err := client.New(cfg, client.Options{})
865865
Expect(err).NotTo(HaveOccurred())
866866
Expect(cl).NotTo(BeNil())
@@ -956,7 +956,7 @@ var _ = Describe("Client", func() {
956956
close(done)
957957
})
958958

959-
It("should fail if the object does not exists", func(done Done) {
959+
It("should fail if the object does not exist", func(done Done) {
960960
cl, err := client.New(cfg, client.Options{})
961961
Expect(err).NotTo(HaveOccurred())
962962
Expect(cl).NotTo(BeNil())
@@ -1024,7 +1024,7 @@ var _ = Describe("Client", func() {
10241024
close(done)
10251025
})
10261026

1027-
It("should fail if the object does not exists", func(done Done) {
1027+
It("should fail if the object does not exist", func(done Done) {
10281028
cl, err := client.New(cfg, client.Options{})
10291029
Expect(err).NotTo(HaveOccurred())
10301030
Expect(cl).NotTo(BeNil())
@@ -1136,7 +1136,7 @@ var _ = Describe("Client", func() {
11361136
err = cl.Patch(context.TODO(), u, client.ConstantPatch(types.MergePatchType, mergePatch))
11371137
Expect(err).NotTo(HaveOccurred())
11381138

1139-
By("validating pathed Node has new annotation")
1139+
By("validating patched Node has new annotation")
11401140
actual, err := clientset.CoreV1().Nodes().Get(nodeName, metav1.GetOptions{})
11411141
Expect(err).NotTo(HaveOccurred())
11421142
Expect(actual).NotTo(BeNil())
@@ -1240,7 +1240,7 @@ var _ = Describe("Client", func() {
12401240
close(done)
12411241
})
12421242

1243-
It("should fail if the object does not exists", func(done Done) {
1243+
It("should fail if the object does not exist", func(done Done) {
12441244
cl, err := client.New(cfg, client.Options{})
12451245
Expect(err).NotTo(HaveOccurred())
12461246
Expect(cl).NotTo(BeNil())
@@ -1345,7 +1345,7 @@ var _ = Describe("Client", func() {
13451345
close(done)
13461346
})
13471347

1348-
It("should fail if the object does not exists", func(done Done) {
1348+
It("should fail if the object does not exist", func(done Done) {
13491349
cl, err := client.New(cfg, client.Options{})
13501350
Expect(err).NotTo(HaveOccurred())
13511351
Expect(cl).NotTo(BeNil())

pkg/client/options.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,6 @@ type DeleteOptions struct {
101101
// AsDeleteOptions returns these options as a metav1.DeleteOptions.
102102
// This may mutate the Raw field.
103103
func (o *DeleteOptions) AsDeleteOptions() *metav1.DeleteOptions {
104-
105104
if o == nil {
106105
return &metav1.DeleteOptions{}
107106
}
@@ -309,7 +308,6 @@ type UpdateOptions struct {
309308
// AsUpdateOptions returns these options as a metav1.UpdateOptions.
310309
// This may mutate the Raw field.
311310
func (o *UpdateOptions) AsUpdateOptions() *metav1.UpdateOptions {
312-
313311
if o == nil {
314312
return &metav1.UpdateOptions{}
315313
}

0 commit comments

Comments
 (0)