mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-11-23 02:11:01 +00:00
Forgot to gofmt
This commit is contained in:
parent
2d07120891
commit
ed18293ab3
2 changed files with 6 additions and 6 deletions
|
@ -8,9 +8,9 @@ import (
|
||||||
// for publishing build artifacts when
|
// for publishing build artifacts when
|
||||||
// a Build has succeeded
|
// a Build has succeeded
|
||||||
type Publish struct {
|
type Publish struct {
|
||||||
S3 *S3 `yaml:"s3,omitempty"`
|
S3 *S3 `yaml:"s3,omitempty"`
|
||||||
Swift *Swift `yaml:"swift,omitempty"`
|
Swift *Swift `yaml:"swift,omitempty"`
|
||||||
PyPI *PyPI `yaml:"pypi,omitempty"`
|
PyPI *PyPI `yaml:"pypi,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
func (p *Publish) Write(f *buildfile.Buildfile) {
|
func (p *Publish) Write(f *buildfile.Buildfile) {
|
||||||
|
|
|
@ -29,9 +29,9 @@ fi
|
||||||
`
|
`
|
||||||
|
|
||||||
type PyPI struct {
|
type PyPI struct {
|
||||||
Username string `yaml:"username,omitempty"`
|
Username string `yaml:"username,omitempty"`
|
||||||
Password string `yaml:"password,omitempty"`
|
Password string `yaml:"password,omitempty"`
|
||||||
Formats []string `yaml:"formats,omitempty"`
|
Formats []string `yaml:"formats,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
func (p *PyPI) Write(f *buildfile.Buildfile) {
|
func (p *PyPI) Write(f *buildfile.Buildfile) {
|
||||||
|
@ -62,5 +62,5 @@ func (p *PyPI) BuildFormatStr() string {
|
||||||
for i := range p.Formats {
|
for i := range p.Formats {
|
||||||
fmtStr += p.Formats[i] + ","
|
fmtStr += p.Formats[i] + ","
|
||||||
}
|
}
|
||||||
return fmtStr[:len(fmtStr) - 1]
|
return fmtStr[:len(fmtStr)-1]
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue