Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 4dc15a5

Browse files
committed
linting
1 parent 5e4172a commit 4dc15a5

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

cli/cliui/table.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,7 @@ func isStructOrStructPointer(t reflect.Type) bool {
233233
//
234234
// requireDefault is only needed for the root call. This is recursive, so nested
235235
// structs do not need the default sort name.
236+
// nolint:revive
236237
func typeToTableHeaders(t reflect.Type, requireDefault bool) ([]string, string, error) {
237238
if !isStructOrStructPointer(t) {
238239
return nil, "", xerrors.Errorf("typeToTableHeaders called with a non-struct or a non-pointer-to-a-struct type")

site/src/pages/TemplateSettingsPage/TemplatePermissionsPage/TemplatePermissionsPageView.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import { type Interpolation, type Theme } from "@emotion/react";
1212
import { type FC, useState } from "react";
1313
import type {
1414
Group,
15+
ReducedUser,
1516
TemplateACL,
1617
TemplateGroup,
1718
TemplateRole,
@@ -43,7 +44,11 @@ type AddTemplateUserOrGroupProps = {
4344
isLoading: boolean;
4445
templateACL: TemplateACL | undefined;
4546
onSubmit: (
46-
userOrGroup: TemplateUser | TemplateGroup,
47+
userOrGroup:
48+
| TemplateUser
49+
| TemplateGroup
50+
// Reduce user is returned by the groups.
51+
| ({ role: TemplateRole } & ReducedUser),
4752
role: TemplateRole,
4853
reset: () => void,
4954
) => void;

0 commit comments

Comments
 (0)