Skip to content

Commit

Permalink
Merge pull request #43 from PierreTechoueyres/tecp/pacify-byte-compiler
Browse files Browse the repository at this point in the history
Pacify the byte compiler
  • Loading branch information
alf committed Dec 28, 2023
2 parents 2d3583e + 0ac8af9 commit 8183f8a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ob-restclient.el
@@ -1,4 +1,4 @@
;;; ob-restclient.el --- org-babel functions for restclient-mode
;;; ob-restclient.el --- org-babel functions for restclient-mode -*- lexical-binding: t -*-

;; Copyright (C) Alf Lervåg

Expand Down Expand Up @@ -37,6 +37,7 @@
(require 'ob-ref)
(require 'ob-comint)
(require 'ob-eval)
(require 'org-table)
(require 'restclient)

(defvar org-babel-default-header-args:restclient
Expand Down Expand Up @@ -92,7 +93,7 @@ This function is called by `org-babel-execute-src-block'"
(format "%s %s--args %s" org-babel-restclient--jq-path
(if (assq :jq-args params) (format "%s " jq-args) "")
(shell-quote-argument (cdr jq-header)))
(current-buffer)
results-buffer
t))

;; widen if jq but not pure payload
Expand All @@ -102,8 +103,7 @@ This function is called by `org-babel-execute-src-block'"
(widen))

(if (member "table" (cdr (assoc :result-params params)))
(let* ((pmax (point-max))
(separator '(4))
(let* ((separator '(4))
(result
(condition-case err
(let ((pmax (point-max)))
Expand Down

0 comments on commit 8183f8a

Please sign in to comment.