 
   checkForUpdate: (cb=null) ->
     if atom.config.get('sync-settings.gistId') and atom.config.get('sync-settings.checkForUpdatedBackup')
-      setTimeout =>
+      setImmediate =>
         console.debug('checking latest backup...')
         @createClient().gists.get
           id: atom.config.get 'sync-settings.gistId'

[GitHubApi, PackageManager] = []

# constants
DESCRIPTION = 'Atom configuration storage operated by http://atom.io/packages/sync-settings'
REMOVE_KEYS = ["sync-settings"]

module.exports =
  config: require('./config.coffee')

  activate: ->

    catch e
      console.error "Error reading file #{filePath}. Probably doesn't exist.", e
      null

module.exports = SyncSettings
