           return true
         else
           rc = if _.isNumber(result) then result else 401
-          console.warn "Access denied!" if @debug
+          console.warn 'Access denied!' if @debug
           if http
-            text = "Access denied!"
+            text = 'Access denied!'
             http.response.writeHead rc,
               'Content-Length': text.length
-              'Content-Type':   "text/plain"
+              'Content-Type':   'text/plain'
             http.response.end text
           return false
       else

  ###
  insert: if Meteor.isClient then (config) ->
    if @checkAccess()
      console.info "Meteor.Files Debugger: [insert()]" if @debug
      {file, meta, onUploaded, onProgress, onBeforeUpload, onAbort, streams} = config
      meta ?= {}


  @returns {String}
  ###
  link: (fileRef, version = 'original', pub = false) ->
    console.info 'Meteor.Files Debugger: [link()]' if @debug
    if _.isString fileRef
      version = fileRef
      fileRef = undefined
