diff --git a/lib/mixpanel-node.js b/lib/mixpanel-node.js
index <HASH>..<HASH> 100644
--- a/lib/mixpanel-node.js
+++ b/lib/mixpanel-node.js
@@ -253,10 +253,8 @@ var create_client = function(token, config) {
                     }
                     if (completed_events < total_events) {
                         send_next_batch();
-                    } else {
-                        if (callback) {
-                            callback(request_errors);
-                        }
+                    } else if (callback) {
+                        callback(request_errors);
                     }
                 });
                 event_group_idx += batch_size;
nested if is now superfluous