Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: add unparam linter #158

Merged
merged 2 commits into from
Oct 1, 2024
Merged

ci: add unparam linter #158

merged 2 commits into from
Oct 1, 2024

Conversation

kolyshkin
Copy link
Collaborator

No description provided.

.golangci.yml Outdated Show resolved Hide resolved
mountinfo/mounted_linux_test.go Outdated Show resolved Hide resolved
mountinfo/mounted_linux_test.go Show resolved Hide resolved
1. Drop the last argument of tMount as it's always "".

2. Drop the error return of tMount, instead use t.Fatal.

3. Do the same for prepare. Fix the doc accordingly.

4. Add tCreateFile helper.

5. Change MkdirTemp to Mkdir since we have a new empty directory.

6. Inline some t.TempDir() calls.

7. Sprinkle t.Helper().

Signed-off-by: Kir Kolyshkin <[email protected]>
Also:
 - sort the list of linters;
 - remove capability/.golangci.yml as it is now identical to the
   main one.

Signed-off-by: Kir Kolyshkin <[email protected]>
@kolyshkin
Copy link
Collaborator Author

Fixed review comments; PTAL @thaJeztah

Copy link
Member

@thaJeztah thaJeztah left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@thaJeztah thaJeztah merged commit ed0950b into moby:main Oct 1, 2024
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants