Skip to content

Commit

Permalink
FEAT: tiny code optimization
Browse files Browse the repository at this point in the history
  • Loading branch information
Oldes committed Jul 5, 2020
1 parent 7525f82 commit 2854c46
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/mezz/base-files.reb
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,10 @@ file-type?: func [
"Return the identifying word for a specific file type (or NONE)."
file [file! url!]
][
if file: find find system/options/file-types suffix? file word! [first file]
all [
file: find find system/options/file-types suffix? file word!
first file
]
]

split-path: func [
Expand Down

0 comments on commit 2854c46

Please sign in to comment.