From 54e9ee37a7a301dbe74d46fd3c87712e6120e9bf Mon Sep 17 00:00:00 2001 From: 6543 <6543@obermui.de> Date: Thu, 20 Jan 2022 18:46:10 +0100 Subject: format with gofumpt (#18184) * gofumpt -w -l . * gofumpt -w -l -extra . * Add linter * manual fix * change make fmt --- modules/setting/mirror.go | 30 ++++++++++++++---------------- 1 file changed, 14 insertions(+), 16 deletions(-) (limited to 'modules/setting/mirror.go') diff --git a/modules/setting/mirror.go b/modules/setting/mirror.go index e49393e39c..2bd0322d06 100644 --- a/modules/setting/mirror.go +++ b/modules/setting/mirror.go @@ -10,22 +10,20 @@ import ( "code.gitea.io/gitea/modules/log" ) -var ( - // Mirror settings - Mirror = struct { - Enabled bool - DisableNewPull bool - DisableNewPush bool - DefaultInterval time.Duration - MinInterval time.Duration - }{ - Enabled: true, - DisableNewPull: false, - DisableNewPush: false, - MinInterval: 10 * time.Minute, - DefaultInterval: 8 * time.Hour, - } -) +// Mirror settings +var Mirror = struct { + Enabled bool + DisableNewPull bool + DisableNewPush bool + DefaultInterval time.Duration + MinInterval time.Duration +}{ + Enabled: true, + DisableNewPull: false, + DisableNewPush: false, + MinInterval: 10 * time.Minute, + DefaultInterval: 8 * time.Hour, +} func newMirror() { // Handle old configuration through `[repository]` `DISABLE_MIRRORS` -- cgit v1.2.3