Skip to content

Commit 3f2b34b

Browse files
committed
fix fmt
1 parent 7a083b9 commit 3f2b34b

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

modules/matchlist/matchlist.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@ import (
1010

1111
// Matchlist represents a black or white list
1212
type Matchlist struct {
13-
rules []string
13+
rules []string
1414
ruleGlobs []glob.Glob
1515
}
1616

1717
// NewMatchlist creates a new black or white list
1818
func NewMatchlist(rules ...string) (*Matchlist, error) {
1919
list := Matchlist{
20-
rules: rules,
20+
rules: rules,
2121
ruleGlobs: make([]glob.Glob, 0, len(rules)),
2222
}
2323

@@ -40,4 +40,4 @@ func (b *Matchlist) Match(u string) bool {
4040
}
4141
}
4242
return false
43-
}
43+
}

modules/migrations/migrate.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ func MigrateRepository(doer *models.User, ownerName string, opts base.MigrateOpt
5656
if !allowed {
5757
return nil, err
5858
}
59-
59+
6060
var (
6161
downloader base.Downloader
6262
uploader = NewGiteaLocalUploader(doer, ownerName, opts.Name)
@@ -301,4 +301,4 @@ func Init() error {
301301
return fmt.Errorf("Init migration blacklist domains failed: %v", err)
302302
}
303303
return nil
304-
}
304+
}

modules/migrations/migrate_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,4 @@ func TestMigrateWhiteBlacklist(t *testing.T) {
3535
allowed, err = isMigrateURLAllowed("https://github.com/go-gitea/gitea.git")
3636
assert.False(t, allowed)
3737
assert.Error(t, err)
38-
}
38+
}

modules/setting/migrate.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import (
1111
var Migration = struct {
1212
WhitelistedDomains []string
1313
BlacklistedDomains []string
14-
} {
14+
}{
1515
WhitelistedDomains: []string{},
1616
BlacklistedDomains: []string{},
1717
}
@@ -22,4 +22,4 @@ func InitMigrationConfig() error {
2222
return fmt.Errorf("Failed to map Migration settings: %v", err)
2323
}
2424
return nil
25-
}
25+
}

0 commit comments

Comments
 (0)