@@ -22,9 +22,7 @@ func TestOrganizationService_GetAllOrganizationsWithContext(t *testing.T) {
22
22
23
23
if result == nil {
24
24
t .Error ("Expected Organizations. Result is nil" )
25
- }
26
-
27
- if result .Size != 1 {
25
+ } else if result .Size != 1 {
28
26
t .Errorf ("Expected size to be 1, but got %d" , result .Size )
29
27
}
30
28
@@ -51,9 +49,7 @@ func TestOrganizationService_CreateOrganization(t *testing.T) {
51
49
52
50
if o == nil {
53
51
t .Error ("Expected Organization. Result is nil" )
54
- }
55
-
56
- if o .Name != name {
52
+ } else if o .Name != name {
57
53
t .Errorf ("Expected name to be %s, but got %s" , name , o .Name )
58
54
}
59
55
@@ -82,9 +78,7 @@ func TestOrganizationService_GetOrganization(t *testing.T) {
82
78
83
79
if o == nil {
84
80
t .Error ("Expected Organization. Result is nil" )
85
- }
86
-
87
- if o .Name != "name" {
81
+ } else if o .Name != "name" {
88
82
t .Errorf ("Expected name to be name, but got %s" , o .Name )
89
83
}
90
84
}
@@ -132,9 +126,7 @@ func TestOrganizationService_GetPropertiesKeys(t *testing.T) {
132
126
133
127
if pk == nil {
134
128
t .Error ("Expected Keys. Result is nil" )
135
- }
136
-
137
- if pk .Keys [0 ].Key != "organization.attributes" {
129
+ } else if pk .Keys [0 ].Key != "organization.attributes" {
138
130
t .Errorf ("Expected name to be organization.attributes, but got %s" , pk .Keys [0 ].Key )
139
131
}
140
132
}
@@ -165,9 +157,7 @@ func TestOrganizationService_GetProperty(t *testing.T) {
165
157
166
158
if ep == nil {
167
159
t .Error ("Expected Entity. Result is nil" )
168
- }
169
-
170
- if ep .Key != key {
160
+ } else if ep .Key != key {
171
161
t .Errorf ("Expected name to be %s, but got %s" , key , ep .Key )
172
162
}
173
163
}
@@ -279,9 +269,7 @@ func TestOrganizationService_GetUsers(t *testing.T) {
279
269
280
270
if users == nil {
281
271
t .Error ("Expected Organizations. Result is nil" )
282
- }
283
-
284
- if users .Size != 1 {
272
+ } else if users .Size != 1 {
285
273
t .Errorf ("Expected size to be 1, but got %d" , users .Size )
286
274
}
287
275
0 commit comments