Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(lint): ran gofmt -s on all files #265

Merged
merged 2 commits into from Sep 10, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion constants/doc.go
Expand Up @@ -6,5 +6,5 @@
//
// Usage:
//
// import "github.com/go-vela/types/constants"
// import "github.com/go-vela/types/constants"
package constants
2 changes: 1 addition & 1 deletion database/doc.go
Expand Up @@ -6,5 +6,5 @@
//
// Usage:
//
// import "github.com/go-vela/types/database"
// import "github.com/go-vela/types/database"
package database
2 changes: 1 addition & 1 deletion library/doc.go
Expand Up @@ -6,5 +6,5 @@
//
// Usage:
//
// import "github.com/go-vela/types/library"
// import "github.com/go-vela/types/library"
package library
2 changes: 1 addition & 1 deletion library/repo.go
Expand Up @@ -369,7 +369,7 @@ func (r *Repo) GetPipelineType() string {
// GetPreviousName returns the PreviousName field.
//
// When the provided Repo type is nil, or the field within
// the type is nil, it returns the zero value for the field.
//  the type is nil, it returns the zero value for the field.
func (r *Repo) GetPreviousName() string {
// return zero value if Repo type or PreviousName field is nil
if r == nil || r.PreviousName == nil {
Expand Down
4 changes: 2 additions & 2 deletions pipeline/build.go
Expand Up @@ -70,8 +70,8 @@ func (b *Build) Purge(r *RuleData) *Build {
// of the provided runtime driver which is setup on every worker.
// Currently, this function supports the following runtimes:
//
// * Docker
// * Kubernetes
// - Docker
// - Kubernetes
func (b *Build) Sanitize(driver string) *Build {
// return an empty pipeline if both stages and steps are provided
if len(b.Stages) > 0 && len(b.Steps) > 0 {
Expand Down
8 changes: 4 additions & 4 deletions pipeline/container.go
Expand Up @@ -85,8 +85,8 @@ func (c *ContainerSlice) Purge(r *RuleData) *ContainerSlice {
// based off of the provided runtime driver which is setup on every
// worker. Currently, this function supports the following runtimes:
//
// * Docker
// * Kubernetes
// - Docker
// - Kubernetes
func (c *ContainerSlice) Sanitize(driver string) *ContainerSlice {
containers := new(ContainerSlice)

Expand Down Expand Up @@ -250,8 +250,8 @@ func (c *Container) MergeEnv(environment map[string]string) error {
// based off of the provided runtime driver which is setup on every
// worker. Currently, this function supports the following runtimes:
//
// * Docker
// * Kubernetes
// - Docker
// - Kubernetes
func (c *Container) Sanitize(driver string) *Container {
container := c

Expand Down
2 changes: 1 addition & 1 deletion pipeline/doc.go
Expand Up @@ -6,5 +6,5 @@
//
// Usage:
//
// import "github.com/go-vela/types/pipeline"
// import "github.com/go-vela/types/pipeline"
package pipeline
4 changes: 2 additions & 2 deletions pipeline/stage.go
Expand Up @@ -78,8 +78,8 @@ func (s *StageSlice) Purge(r *RuleData) *StageSlice {
// based off of the provided runtime driver which is setup on every
// worker. Currently, this function supports the following runtimes:
//
// * Docker
// * Kubernetes
// - Docker
// - Kubernetes
func (s *StageSlice) Sanitize(driver string) *StageSlice {
stages := new(StageSlice)

Expand Down
2 changes: 1 addition & 1 deletion raw/doc.go
Expand Up @@ -6,5 +6,5 @@
//
// Usage:
//
// import "github.com/go-vela/types/raw"
// import "github.com/go-vela/types/raw"
package raw
2 changes: 1 addition & 1 deletion version/doc.go
Expand Up @@ -6,5 +6,5 @@
//
// Usage:
//
// import "github.com/go-vela/types/version"
// import "github.com/go-vela/types/version"
package version
2 changes: 1 addition & 1 deletion yaml/doc.go
Expand Up @@ -6,5 +6,5 @@
//
// Usage:
//
// import "github.com/go-vela/types/yaml"
// import "github.com/go-vela/types/yaml"
package yaml