horizoncd/horizon

View on GitHub
core/controller/registry/models.go

Summary

Maintainability
A
50 mins
Test Coverage

Showing 1 of 1 total issue

Similar blocks of code found in 2 locations. Consider refactoring.
Open

func ofRegistryModel(entity *models.Registry) *Registry {
return &Registry{
ID: entity.ID,
Name: entity.Name,
Server: entity.Server,
Severity: Minor
Found in core/controller/registry/models.go and 1 other location - About 50 mins to fix
core/controller/user/models.go on lines 36..48
Category
Status