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:
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user