Skip to content

Code duplication in handlers #70

Description

@msachi

Your handleHome and handleSelected handlers are doing almost exactly the same thing except for the url argument. They are also both just a specific case of handlePublic. So you can abstract this into at least 2 or preferably 1 handler.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions