   # subscribeGroup: (group, data, callback)->
   #   doSubscribe "group_#{group._id}", data, callback
 
-  fetchSubscription: secure ({ connection:{ delegate }}, callback) ->
+  fetchSubscription: secure ({ connection:{ delegate } }, callback) ->
     selector    =
       userCode  : "user_#{delegate.getId()}"
       planCode  : @planCode
 
     JPaymentSubscription.one selector, callback
 
-  getType:-> if @feeInterval is 1 then 'recurring' else 'single'
+  getType: -> if @feeInterval is 1 then 'recurring' else 'single'
 
   fetchSubscriptions: (callback) ->
     JPaymentSubscription.all

      recurly.createPlan plan, (err) ->
        return callback err  if err

        JGroup.one slug: groupSlug, (err, group) ->
          return callback err  if err

          group.addPlan plan, (err) ->

# coffeelint: disable=no_implicit_braces
JPaymentBase = require './base'

module.exports = class JPaymentPlan extends JPaymentBase
