Skip to content

Commit

Permalink
Rename function
Browse files Browse the repository at this point in the history
  • Loading branch information
ashwinbhaskar authored and siftrics committed Mar 25, 2020
1 parent 19de523 commit 28b4478
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/sight/core.clj
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@

(defn file-path->file-entry
[filepath]
(->FileEntry (if-let [mime-type (u/file-path->mimetype filepath)]
(->FileEntry (if-let [mime-type (u/file-path->mime-type filepath)]
mime-type
(throw (Exception. "invalid file extension; must be one of \".pdf\", \".bmp\", \".gif\", \".jpeg\", \".jpg\", or \".png\"")))
(u/file-path->base64file filepath)))
Expand Down
2 changes: 1 addition & 1 deletion src/sight/utils.clj
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
last
keyword))

(defn file-path->mimetype
(defn file-path->mime-type
[file-path]
(-> file-path
file-extension
Expand Down

0 comments on commit 28b4478

Please sign in to comment.