We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4da2eab commit a2afd38Copy full SHA for a2afd38
.revive.toml
@@ -24,3 +24,4 @@ warningCode = 1
24
[rule.indent-error-flow]
25
[rule.errorf]
26
[rule.duplicated-imports]
27
+[rule.modifies-value-receiver]
models/issue_comment.go
@@ -123,8 +123,7 @@ const (
123
124
// WithRole enable a specific tag on the RoleDescriptor.
125
func (rd RoleDescriptor) WithRole(role RoleDescriptor) RoleDescriptor {
126
- rd |= (1 << role)
127
- return rd
+ return rd | (1 << role)
128
}
129
130
func stringToRoleDescriptor(role string) RoleDescriptor {
0 commit comments