From 41b7b9198f64bcebd1f04af684d97a0498382c1d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=2EFernando=20S=C3=A1nchez?= Date: Thu, 15 Mar 2012 17:19:43 +0100 Subject: [PATCH] Fixed null callback --- lib/hook.io-sparql.coffee | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/hook.io-sparql.coffee b/lib/hook.io-sparql.coffee index 1136e91..c762d2d 100644 --- a/lib/hook.io-sparql.coffee +++ b/lib/hook.io-sparql.coffee @@ -31,7 +31,7 @@ class SPARQLHook extends Hook query: (query, cb) -> console.log ">>Going to query" @client.rows query, (err, res) -> - cb res + cb? res addPreffix: (key,url) -> @client.prefix_map[key] = url diff --git a/package.json b/package.json index 231c3fd..2201f3f 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,7 @@ "name": "hook.io-sparql", "description": "SparQL hook queries", "keywords" : [ "hook", "hook.io", "sparql" ], - "version": "0.0.2", + "version": "0.0.3", "bugs" : { "url" : "http://github.com/balkian/hook.io-sparql/issues" }, "repository": { "type": "git",