Fix linter

This commit is contained in:
Aron Wussler 2021-11-11 16:42:12 +01:00
parent a0bc8b1af8
commit 24a754d34a
3 changed files with 5 additions and 4 deletions

View file

@ -12,10 +12,10 @@ jobs:
runs-on: macos-latest
steps:
- name: Set up xcode 13.0
- name: Set up xcode 12.2
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: 13.0
xcode-version: 12.2
id: xcode
- name: Set up Go 1.x

View file

@ -42,3 +42,5 @@ linters:
- nilerr # Force return err when not nil
- wrapcheck # Force wrapping of external error TODO: when the bug is fixed update the linter
- gomoddirectives # Prohibits the use of replace statements
- varnamelen # Forbids short var names
- ireturn # Prevents returning interfaces

View file

@ -214,7 +214,6 @@ func TestIssue11(t *testing.T) {
assert.Exactly(t, "message from sender", plainMessage.GetString())
}
func TestDummy(t *testing.T) {
pgp.latestServerTime = 1636644417
defer func() { pgp.latestServerTime = testTime }()