diff options
author | Chongyi Zheng <git@zcy.dev> | 2024-04-29 04:47:56 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-29 08:47:56 +0000 |
commit | e80466f7349164ce4cf3c07bdac30d736d20f035 (patch) | |
tree | 03f321ea4f4892671111a814aab10008bcf0136e /modules/optional | |
parent | ad4e902d5a1430c0c1df18bf404537df5ded1dba (diff) | |
download | gitea-e80466f7349164ce4cf3c07bdac30d736d20f035.tar.gz gitea-e80466f7349164ce4cf3c07bdac30d736d20f035.zip |
Resolve lint for unused parameter and unnecessary type arguments (#30750)
Resolve all cases for `unused parameter` and `unnecessary type
arguments`
Related: #30729
---------
Co-authored-by: Giteabot <teabot@gitea.io>
Diffstat (limited to 'modules/optional')
-rw-r--r-- | modules/optional/option_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/optional/option_test.go b/modules/optional/option_test.go index 4f55608004..203e9221e3 100644 --- a/modules/optional/option_test.go +++ b/modules/optional/option_test.go @@ -22,7 +22,7 @@ func TestOption(t *testing.T) { assert.Equal(t, int(0), none.Value()) assert.Equal(t, int(1), none.ValueOrDefault(1)) - some := optional.Some[int](1) + some := optional.Some(1) assert.True(t, some.Has()) assert.Equal(t, int(1), some.Value()) assert.Equal(t, int(1), some.ValueOrDefault(2)) |