From 044c0df42813697a0923e6de87ac8e2243d6025c Mon Sep 17 00:00:00 2001 From: tsmethurst Date: Sat, 20 Mar 2021 19:08:17 +0100 Subject: [PATCH] go fmt --- internal/gtsmodel/account.go | 2 +- internal/gtsmodel/user.go | 10 +++++----- internal/oauth/oauth_test.go | 4 +--- 3 files changed, 7 insertions(+), 9 deletions(-) diff --git a/internal/gtsmodel/account.go b/internal/gtsmodel/account.go index 7bc8118..6786014 100644 --- a/internal/gtsmodel/account.go +++ b/internal/gtsmodel/account.go @@ -121,7 +121,7 @@ type Account struct { // When was this account suspended (eg., don't allow it to log in/post, don't accept media/posts from this account) SuspendedAt time.Time `pg:"type:timestamp"` // How much do we trust this account 🤔 - TrustLevel int + TrustLevel int // Should we hide this account's collections? HideCollections bool // id of the user that suspended this account through an admin action diff --git a/internal/gtsmodel/user.go b/internal/gtsmodel/user.go index c105899..551cbe2 100644 --- a/internal/gtsmodel/user.go +++ b/internal/gtsmodel/user.go @@ -112,9 +112,9 @@ type User struct { EncryptedOTPSecretSalt string OTPRequiredForLogin bool OTPBackupCodes []string - ConsumedTimestamp int - RememberToken string - SignInToken string - SignInTokenSentAt time.Time `pg:"type:timestamp"` - WebauthnID string + ConsumedTimestamp int + RememberToken string + SignInToken string + SignInTokenSentAt time.Time `pg:"type:timestamp"` + WebauthnID string } diff --git a/internal/oauth/oauth_test.go b/internal/oauth/oauth_test.go index 2e5be12..9ee5ac9 100644 --- a/internal/oauth/oauth_test.go +++ b/internal/oauth/oauth_test.go @@ -36,9 +36,7 @@ func (suite *OauthTestSuite) SetupSuite() { logrus.Panicf("error encrypting user pass: %s", err) } - suite.testAccount = >smodel.Account{ - - } + suite.testAccount = >smodel.Account{} suite.testUser = >smodel.User{ EncryptedPassword: string(encryptedPassword), Email: "user@localhost",