internal/apimodule/account: fix multiple imports

This commit is contained in:
Lars Lehtonen 2021-04-15 04:56:04 -07:00
parent 71a49e2b43
commit a54f6f1b10
No known key found for this signature in database
GPG key ID: 8137D474EBCB04F2
2 changed files with 2 additions and 4 deletions

View file

@ -47,7 +47,6 @@ import (
"github.com/superseriousbusiness/gotosocial/internal/storage"
"github.com/superseriousbusiness/gotosocial/pkg/mastotypes"
"github.com/superseriousbusiness/oauth2/v4"
"github.com/superseriousbusiness/oauth2/v4/models"
oauthmodels "github.com/superseriousbusiness/oauth2/v4/models"
"golang.org/x/crypto/bcrypt"
)
@ -147,7 +146,7 @@ func (suite *AccountCreateTestSuite) SetupSuite() {
l.Infof("received clientSecret %+v", clientSecret)
userID := args.Get(2).(string)
l.Infof("received userID %+v", userID)
}).Return(&models.Token{
}).Return(&oauthmodels.Token{
Code: "we're authorized now!",
}, nil)

View file

@ -44,7 +44,6 @@ import (
"github.com/superseriousbusiness/gotosocial/internal/oauth"
"github.com/superseriousbusiness/gotosocial/internal/storage"
"github.com/superseriousbusiness/oauth2/v4"
"github.com/superseriousbusiness/oauth2/v4/models"
oauthmodels "github.com/superseriousbusiness/oauth2/v4/models"
)
@ -143,7 +142,7 @@ func (suite *AccountUpdateTestSuite) SetupSuite() {
l.Infof("received clientSecret %+v", clientSecret)
userID := args.Get(2).(string)
l.Infof("received userID %+v", userID)
}).Return(&models.Token{
}).Return(&oauthmodels.Token{
Code: "we're authorized now!",
}, nil)