mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
chore: linting fixes (#13450)
This commit is contained in:
@@ -600,7 +600,7 @@ func (g *Generator) buildStruct(obj types.Object, st *types.Struct) (string, err
|
||||
// inferred.
|
||||
typescriptTag, err := tags.Get("typescript")
|
||||
if err == nil {
|
||||
if err == nil && typescriptTag.Name == "-" {
|
||||
if typescriptTag.Name == "-" {
|
||||
// Completely ignore this field.
|
||||
continue
|
||||
} else if typescriptTag.Name != "" {
|
||||
|
||||
@@ -21,7 +21,7 @@ const (
|
||||
// said resource type.
|
||||
var RBACResourceActions = map[RBACResource][]RBACAction{
|
||||
{{- range $element := . }}
|
||||
Resource{{ pascalCaseName $element.FunctionName }}: []RBACAction{
|
||||
Resource{{ pascalCaseName $element.FunctionName }}: {
|
||||
{{- range $actionValue, $_ := $element.Actions }}
|
||||
{{- actionEnum $actionValue -}},
|
||||
{{- end -}}
|
||||
|
||||
Reference in New Issue
Block a user