Skip to content

Commit 32dcf59

Browse files
committed
Refactor
1 parent 83af389 commit 32dcf59

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

helm-qiita.el

+9-9
Original file line numberDiff line numberDiff line change
@@ -83,10 +83,10 @@ See https://qiita.com/api/v2/docs")
8383
"Cache a result of `helm-qiita-find-curl-program'.
8484
DO NOT SET VALUE MANUALLY.")
8585

86-
(defvar helm-qiita-http-buffer-name " *helm-qiita-http*"
86+
(defconst helm-qiita-http-buffer-name " *helm-qiita-http*"
8787
"HTTP Working buffer name of `helm-qiita-http-request'.")
8888

89-
(defvar helm-qiita-work-buffer-name " *helm-qiita-work*"
89+
(defconst helm-qiita-work-buffer-name " *helm-qiita-work*"
9090
"Working buffer name of `helm-qiita-http-request'.")
9191

9292
(defvar helm-qiita-full-frame helm-full-frame)
@@ -281,13 +281,13 @@ Argument RESPONSE-BODY is http response body as a json"
281281
RESULT is boolean.
282282
PROCESS is a http-request process."
283283
(if helm-qiita-debug-mode
284-
(message (format "[Q] %s to GET %s (%0.1fsec) at %s."
285-
(if result "Success" "Failure")
286-
(car (last (process-command process)))
287-
(time-to-seconds
288-
(time-subtract (current-time)
289-
helm-qiita-debug-start-time))
290-
(format-time-string "%Y-%m-%d %H:%M:%S" (current-time))))))
284+
(message "[Q] %s to GET %s (%0.1fsec) at %s."
285+
(if result "Success" "Failure")
286+
(car (last (process-command process)))
287+
(time-to-seconds
288+
(time-subtract (current-time)
289+
helm-qiita-debug-start-time))
290+
(format-time-string "%Y-%m-%d %H:%M:%S" (current-time)))))
291291

292292
;;; Timer
293293

0 commit comments

Comments
 (0)