Remove autoformatting related changes and a closure that is not needed

This commit is contained in:
Brian Meek 2022-07-27 10:33:19 -07:00
parent 4403c5997e
commit 7d8d752ee1
No known key found for this signature in database
GPG key ID: ACBD71263BF42D00
2 changed files with 7 additions and 8 deletions

View file

@ -35,16 +35,16 @@ submitting your contribution.
## Comments
Please make sure that the comments adequately explain _why_ your code does what it
Please make sure that the comments adequately explain *why* your code does what it
does. If there are statements that are not obvious, please comment what they do.
We also have some special tags which we use for searchability. These are:
- `// TODO:` for places where a future review, rewrite or refactor is likely required;
- `// FIXME:` for places where we know there is an outstanding bug that needs a fix;
- `// NOTSPEC:` for places where the behaviour specifically does not match what the
* `// TODO:` for places where a future review, rewrite or refactor is likely required;
* `// FIXME:` for places where we know there is an outstanding bug that needs a fix;
* `// NOTSPEC:` for places where the behaviour specifically does not match what the
[Matrix Specification](https://spec.matrix.org/) prescribes, along with a description
of _why_ that is the case.
of *why* that is the case.
## Linting

View file

@ -176,9 +176,8 @@ func TestDeviceKeysStreamIDGeneration(t *testing.T) {
dbLock.Lock()
defer dbLock.Unlock()
// Querying for device keys returns the latest stream IDs
msgs, err = func() ([]api.DeviceMessage, error) {
return db.DeviceKeysForUser(ctx, alice, deviceArray, false)
}()
msgs, err = db.DeviceKeysForUser(ctx, alice, deviceArray, false)
if err != nil {
t.Fatalf("DeviceKeysForUser returned error: %s", err)
}