Skip to content

Commit

Permalink
Try to fix error on webrpc repo
Browse files Browse the repository at this point in the history
command failed: template: main.go.tmpl:8:32: executing "main" at <eq .Opts.types "false">: error calling eq: incompatible types for comparison
  • Loading branch information
VojtechVitek committed Aug 5, 2023
1 parent 34d99ce commit 57e56e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
{{- set $opts "pkg" (default .Opts.pkg "proto") -}}
{{- set $opts "client" (ternary (in .Opts.client "" "true") true false) -}}
{{- set $opts "server" (ternary (in .Opts.server "" "true") true false) -}}
{{- set $opts "types" (ternary (eq .Opts.types "false") false true) -}}
{{- set $opts "types" (ternary (eq (default .Opts.types "true") "false") false true) -}}
{{- set $opts "json" (default .Opts.json "stdlib") -}}
{{- set $opts "importTypesFrom" (default .Opts.importTypesFrom "" ) -}}
{{- set $opts "legacyErrors" (ternary (in .Opts.legacyErrors "" "true") true false) -}}
Expand Down

0 comments on commit 57e56e1

Please sign in to comment.