Skip to content
代码片段 群组 项目
提交 0e6ba035 编辑于 作者: Michael Becker's avatar Michael Becker 提交者: Brett Walker
浏览文件

Remove use of Vulnerability.states[:somesymbol] from service classes

We can just use the enum states directly as symbols rather than
calling `.states` on the class

This was brought up in a comment on another MR ([here][0]):

> I noticed a lot of indexing and explicit references to the
> Vulnerability State enum which Rails will conveniently magic away for
> us anyways. I've added in suggestions to let Rails handle that
> behaviour more for us

This commit removes those aforementioned explicit usages of the enum

[0]:https://gitlab.com/gitlab-org/gitlab/-/merge_requests/99142#note_1118961906
上级 959f4729
No related branches found
No related tags found
加载中
加载中
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册