Skip to content

Commit

Permalink
rename file_ext to filename_ext
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryan Patrick Kyle committed Mar 5, 2019
1 parent 8da24be commit d2630fa
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions R/utils.R
Original file line number Diff line number Diff line change
Expand Up @@ -424,11 +424,11 @@ get_mimetype <- function(filename) {
# the tools package is available to all
filename_ext <- tools::file_ext(filename)

if (file_ext == 'js')
if (filename_ext == 'js')
return('application/JavaScript')
else if (file_ext == 'css')
else if (filename_ext == 'css')
return('text/css')
else if (file_ext == 'map')
else if (filename_ext == 'map')
return('application/json')
else
return(NULL)
Expand Down

0 comments on commit d2630fa

Please sign in to comment.