Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fix bug

  • Loading branch information...
commit 3abc0999aa869f5d0705fc94add023bbf25a7bee 1 parent 0499f24
Felix Geisendörfer authored October 31, 2011

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  lib/carbon_client.js
2  lib/carbon_client.js
@@ -38,7 +38,7 @@ CarbonClient.createClient = function(dsn) {
38 38
 };
39 39
 
40 40
 CarbonClient.prototype.write = function(path, value, timestamp, cb) {
41  
-  if (arguments.length === 3) {
  41
+  if (typeof timestamp === 'function') {
42 42
     cb = timestamp;
43 43
     timestamp = Date.now();
44 44
   }

0 notes on commit 3abc099

Please sign in to comment.
Something went wrong with that request. Please try again.