aboutsummaryrefslogtreecommitdiff
path: root/internal/cmd/backup.go
diff options
context:
space:
mode:
authordeepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com>2022-03-06 17:55:17 +0800
committerGitHub <noreply@github.com>2022-03-06 17:55:17 +0800
commite452d94fc842da6623c8fde67b9d71a1ee739f0a (patch)
treee8e0c1c5206bed01f4634dc81ebcbf5af77f8d65 /internal/cmd/backup.go
parent2466da4e82c3658cb9e05498961ad130e0467f0d (diff)
autofix: format code with gofumpt and gofmt (#6803)
Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com>
Diffstat (limited to 'internal/cmd/backup.go')
1 files changed, 4 insertions, 2 deletions
diff --git a/internal/cmd/backup.go b/internal/cmd/backup.go
index 874b1be0..c5e17e16 100644
--- a/internal/cmd/backup.go
+++ b/internal/cmd/backup.go
@@ -42,8 +42,10 @@ portable among all supported database engines.`,
},
}
-const currentBackupFormatVersion = 1
-const archiveRootDir = "gogs-backup"
+const (
+ currentBackupFormatVersion = 1
+ archiveRootDir = "gogs-backup"
+)
func runBackup(c *cli.Context) error {
zip.Verbose = c.Bool("verbose")