Remove trailing whitespace

This commit is contained in:
Alberto Fernández Capel 2018-01-22 15:00:56 +00:00
parent 3ac4e4c457
commit 1a1ccc9f46
2 changed files with 5 additions and 5 deletions

View file

@ -49,7 +49,7 @@ module.exports =
timeout:1000
url: "/user/#{user_id}/event/last_occurnace"
makeRequest opts, (err, response, body)->
if err?
if err?
console.log response, opts
logger.err {user_id, err}, "error getting last occurance of event"
return callback err

View file

@ -8,15 +8,15 @@ define [
ga('send', 'event', category, action)
event_name = "#{action}-#{category}"
Intercom?("trackEvent", event_name, attributes)
App.factory "event_tracking", ($http, localStorage) ->
_getEventCache = () ->
_getEventCache = () ->
eventCache = localStorage CACHE_KEY
# Initialize as an empy object if the event cache is still empty.
if !eventCache?
eventCache = {}
localStorage CACHE_KEY, eventCache
localStorage CACHE_KEY, eventCache
return eventCache
@ -45,7 +45,7 @@ define [
}
sendMBSampled: (key, segmentation) ->
@sendMB key, segmentation if Math.random() < .01
@sendMB key, segmentation if Math.random() < .01
sendMBOnce: (key, segmentation) ->
if ! _eventInCache(key)