fix(test): rls fixture — reuse declared err variable
This commit is contained in:
1 parent
f4b581872f
commit
004d4197a4
1 file changed
+1
-1
@@ -93,7 +93,7 @@ func TestRlsInvariant(t *testing.T) {
|
|||||||
|
|
||||||
// Hide libH from the REGULAR user — the same row the admin
|
// Hide libH from the REGULAR user — the same row the admin
|
||||||
// visibility UI writes (harness idiom: SetLibraryVisibility).
|
// visibility UI writes (harness idiom: SetLibraryVisibility).
|
||||||
_, err := setup.DB.SetLibraryVisibility(ctx, database.SetLibraryVisibilityParams{
|
_, err = setup.DB.SetLibraryVisibility(ctx, database.SetLibraryVisibilityParams{
|
||||||
UserID: pgtype.UUID{Bytes: [16]byte(regularID), Valid: true},
|
UserID: pgtype.UUID{Bytes: [16]byte(regularID), Valid: true},
|
||||||
LibraryID: libH.ID,
|
LibraryID: libH.ID,
|
||||||
IsVisible: false,
|
IsVisible: false,
|
||||||
|
|||||||
Reference in new issue
Block a user