mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-09-12 13:57:14 +00:00
lint fix
This commit is contained in:
parent
f25eab35fc
commit
1b35bd2911
4 changed files with 11 additions and 6 deletions
|
@ -166,7 +166,7 @@ func Test_PersonMarshalJSON(t *testing.T) {
|
|||
sut.PreferredUsername = ap.NaturalLanguageValuesNew()
|
||||
sut.PreferredUsername.Set("en", ap.Content("MaxMuster"))
|
||||
result, _ := sut.MarshalJSON()
|
||||
if "{\"type\":\"Person\",\"preferredUsername\":\"MaxMuster\"}" != string(result) {
|
||||
if string(result) != "{\"type\":\"Person\",\"preferredUsername\":\"MaxMuster\"}" {
|
||||
t.Errorf("MarshalJSON() was = %q", result)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue