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 runs-on: macos-latest
steps: steps:
- name: Set up xcode 13.0 - name: Set up xcode 12.2
uses: maxim-lobanov/setup-xcode@v1 uses: maxim-lobanov/setup-xcode@v1
with: with:
xcode-version: 13.0 xcode-version: 12.2
id: xcode id: xcode
- name: Set up Go 1.x - name: Set up Go 1.x

View file

@ -42,3 +42,5 @@ linters:
- nilerr # Force return err when not nil - nilerr # Force return err when not nil
- wrapcheck # Force wrapping of external error TODO: when the bug is fixed update the linter - wrapcheck # Force wrapping of external error TODO: when the bug is fixed update the linter
- gomoddirectives # Prohibits the use of replace statements - 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()) assert.Exactly(t, "message from sender", plainMessage.GetString())
} }
func TestDummy(t *testing.T) { func TestDummy(t *testing.T) {
pgp.latestServerTime = 1636644417 pgp.latestServerTime = 1636644417
defer func() { pgp.latestServerTime = testTime }() defer func() { pgp.latestServerTime = testTime }()