diff options
author | 2022-02-08 12:19:54 +0100 | |
---|---|---|
committer | 2022-02-08 12:19:54 +0100 | |
commit | b42b0a667ef8c3287919a4b7f379e49683f13077 (patch) | |
tree | 3e3062d268146f2ca60f590485f852a2ba5b49cf | |
parent | merge fixup (diff) | |
download | gotosocial-b42b0a667ef8c3287919a4b7f379e49683f13077.tar.xz |
go fmt
-rw-r--r-- | cmd/gotosocial/action/server/server.go | 2 | ||||
-rw-r--r-- | internal/db/bundb/errors.go | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/cmd/gotosocial/action/server/server.go b/cmd/gotosocial/action/server/server.go index 8686f6a7f..8d447c59f 100644 --- 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 index 113679226..67a673e15 100644 --- 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 } |