Skip to content

Commit

Permalink
Use format instead of concat
Browse files Browse the repository at this point in the history
When I use something like this in :jq [.hits.hits[]._source.message[0]] concat is failing. So format is an ideal replacement.
  • Loading branch information
noorul committed Jan 20, 2015
1 parent 80fc5ac commit 3ff769d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ob-elasticsearch.el
Expand Up @@ -95,7 +95,7 @@ Does not move the point."
(shell-command-on-region
(point-min)
(point-max)
(concat es-jq-path " '" jq-header "'")
(format "%s '%s'" es-jq-path jq-header)
(current-buffer)
t)))
(buffer-string))
Expand Down

0 comments on commit 3ff769d

Please sign in to comment.