Skip to content

Commit

Permalink
style fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
samsep committed Sep 11, 2015
1 parent 9cbcd26 commit 42e5e06
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/scripts/controllers/features.controller.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,9 @@ SubmitWorkFeaturesController = ($scope, SubmitWorkAPIService, API_URL) ->
features = vm.work.features

features.forEach (feature) ->
if feature.name == vm.activeFeature.name
featureAdded = true
featureAdded = true if feature.name == vm.activeFeature.name

if !featureAdded
unless featureAdded
features.push vm.activeFeature
vm.activeFeature = null

Expand Down

0 comments on commit 42e5e06

Please sign in to comment.