Use the auth methods to get IDs to avoid unneeded casts
This commit is contained in:
parent
fc3c5f2187
commit
f1d21ea52b
25 changed files with 65 additions and 146 deletions
|
|
@ -96,7 +96,10 @@ func TestLabel_ReadAll(t *testing.T) {
|
|||
},
|
||||
},
|
||||
{
|
||||
name: "invalid user",
|
||||
name: "invalid user",
|
||||
args: args{
|
||||
a: &User{ID: -1},
|
||||
},
|
||||
wantErr: true,
|
||||
},
|
||||
}
|
||||
|
|
|
|||
Reference in a new issue