The current approach expects the caller to do this:
project.PersistenceSettings.GetType() != "VersionControlled"
Reference:
|
if project.PersistenceSettings != nil && project.PersistenceSettings.GetType() == "VersionControlled" { |
It would be nice if there was a cleaner way to detect a version-controlled project other than comparing with this magic string
The current approach expects the caller to do this:
project.PersistenceSettings.GetType() != "VersionControlled"Reference:
go-octopusdeploy/pkg/projects/project_service.go
Line 252 in 6bd1cc8
It would be nice if there was a cleaner way to detect a version-controlled project other than comparing with this magic string