mirror of
https://github.com/matrix-org/dendrite.git
synced 2026-01-08 14:43:09 -06:00
Remove autoformatting related changes and a closure that is not needed
This commit is contained in:
parent
4403c5997e
commit
7d8d752ee1
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue