1
0
mirror of https://github.com/interviewstreet/go-jira.git synced 2025-11-25 22:12:08 +02:00

fix some posible nil reference

This commit is contained in:
ahmadsalimi
2021-02-08 04:02:36 +03:30
parent 3017996765
commit a4fbf264e7
2 changed files with 7 additions and 21 deletions

View File

@@ -56,9 +56,7 @@ func TestServiceDeskService_GetOrganizations(t *testing.T) {
if orgs == nil {
t.Error("Expected Organizations. Result is nil")
}
if orgs.Size != 3 {
} else if orgs.Size != 3 {
t.Errorf("Expected size to be 3, but got %d", orgs.Size)
}