         type = data.type.substring(data.type.indexOf('(') + 1, data.type.lastIndexOf(')'))
         matches = type.match(@manager.regExp.params)
         if matches?[paramPosition]
-          if paramPosition > 0
-            offsetFix = ' '
-          else
-            offsetFix = ''
-          data.type = data.type.replace(matches[paramPosition], offsetFix + '<span class=\"current-param\">' + matches[paramPosition] + '</span>')
+          offsetFix = if paramPosition > 0 then ' ' else ''
+          data.type = data.type.replace(matches[paramPosition], offsetFix + "<span class=\"current-param\">#{matches[paramPosition]}</span>")
         @view.setData({
           word: data.exprName,
           label: data.type

TypeView = require './atom-ternjs-type-view'
{Point} = require 'atom'

module.exports =
class Type

  manager: null
  overlayDecoration: null
  marker: null

  constructor: (manager, state = {}) ->
    @manager = manager
