Run go fmt

This commit is contained in:
Yorick van Pelt 2023-04-30 18:17:18 +02:00
parent 8e949f837b
commit 0643176ed1
No known key found for this signature in database
GPG Key ID: A36E70F9DC014A15
3 changed files with 3 additions and 3 deletions

View File

@ -33,7 +33,7 @@ func main() {
}
if err := db.CreateAdminUser(database, "admin"); err != nil {
log.Fatalln(err)
log.Fatalln(err)
}
go rushlink.StartMetricsServer(*metricsListen, database, filestore)

View File

@ -39,7 +39,7 @@ type FileUpload struct {
PubID uuid.UUID `gorm:"uniqueIndex"`
// User ID that created this file
CreatedBy uint `gorm:"index"`
CreatedBy uint `gorm:"index"`
// FileName contains the original filename of this FileUpload.
FileName string

View File

@ -24,7 +24,7 @@ type Paste struct {
ID uint `gorm:"primaryKey"`
Type PasteType `gorm:"index"`
State PasteState `gorm:"index"`
CreatedBy uint `gorm:"index"`
CreatedBy uint `gorm:"index"`
Content []byte
Key string `gorm:"uniqueIndex"`
DeleteToken string