commit b42b0a667ef8c3287919a4b7f379e49683f13077
parent 3301148bb73a0f5f32c49417daed6d914c9ec05e
Author: tsmethurst <tobi.smethurst@protonmail.com>
Date: Tue, 8 Feb 2022 12:19:54 +0100
go fmt
Diffstat:
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/cmd/gotosocial/action/server/server.go b/cmd/gotosocial/action/server/server.go
@@ -105,7 +105,7 @@ var Start action.GTSAction = func(ctx context.Context) error {
// overwriting the lockfile if we store a file called 'store.lock'.
// However, in this case it's OK because the keys are set by
// GtS and not the user, so we know we're never going to overwrite it.
- LockFile: path.Join(storageBasePath, "store.lock"),
+ LockFile: path.Join(storageBasePath, "store.lock"),
})
if err != nil {
return fmt.Errorf("error creating storage backend: %s", err)
diff --git a/internal/db/bundb/errors.go b/internal/db/bundb/errors.go
@@ -36,7 +36,7 @@ func processSQLiteError(err error) db.Error {
// Handle supplied error code:
switch sqliteErr.Code() {
case sqlite3.SQLITE_CONSTRAINT_UNIQUE, sqlite3.SQLITE_CONSTRAINT_PRIMARYKEY:
- return db.NewErrAlreadyExists(err.Error())
+ return db.NewErrAlreadyExists(err.Error())
default:
return err
}