recent version of libjson has remove is_error which was checking
[ptask.git] / src / tw.c
index a32ec1c..89343a4 100644 (file)
--- a/src/tw.c
+++ b/src/tw.c
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2012-2013 jeanfi@gmail.com
+ * Copyright (C) 2012-2016 jeanfi@gmail.com
  *
  * This program is free software; you can redistribute it and/or
  * modify it under the terms of the GNU General Public License as
@@ -163,9 +163,6 @@ static struct json_object *task_exec_json(const char *opts)
 
        free(cmd);
 
-       if (o && is_error(o))
-               return NULL;
-
        return o;
 }