Merge branch 'master' of github.com:30x/apidApigeeSync into XAPID886
diff --git a/apigee_sync_test.go b/apigee_sync_test.go index 68db99f..a3ba0f5 100644 --- a/apigee_sync_test.go +++ b/apigee_sync_test.go
@@ -231,7 +231,7 @@ )).To(BeFalse()) //test b nil - Expect(changesHaveNewTables(map[string]bool{"a": true, "b": true}, nil)).To(BeTrue()) + Expect(changesHaveNewTables(map[string]bool{"a": true, "b": true}, nil)).To(BeFalse()) //test a nil Expect(changesHaveNewTables(nil,
diff --git a/changes.go b/changes.go index e7a9289..b11a092 100644 --- a/changes.go +++ b/changes.go
@@ -289,7 +289,8 @@ func changesHaveNewTables(a map[string]bool, changes []common.Change) bool { //nil maps should not be passed in. Making the distinction between nil map and empty map - if a == nil || changes == nil { + if a == nil { + log.Warn("Nil map passed to function changesHaveNewTables, may be bug") return true }