Skip to content

remove the else block from this code #50

@EpiphanyMachine

Description

@EpiphanyMachine

this code can probably be refactored such that it doesn't have an else block. start with $scope.selected_rep.overview.leader = !!$scope.selected_rep.overview.leadership_role (or just omitting the leader property and using leadership_role

https://github.com/EpiphanyMachine/influence/blob/master/src/coffee/angular/controllers-c-individual.coffee#L35-L41

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions