Reduce complexity by removing unused code branch

This commit is contained in:
Maikel Linke
2020-03-04 15:39:30 +11:00
parent e3f840f48c
commit bf26a26743

View File

@@ -8,8 +8,4 @@ Darkswarm.directive "pageView", ->
scope.template = null
ctrl.registerSelectionListener (prefix, selection) ->
if selection?
selection = "#{prefix}/#{selection}" if prefix?
scope.template = "#{selection}.html"
else
scope.template = null
scope.template = "#{prefix}/#{selection}.html"