this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

small lexgen whitespace tweaks

+5 -10
+5 -10
lex/type_schema.go
··· 67 67 params = fmt.Sprintf("%s, input io.Reader", params) 68 68 case EncodingJSON: 69 69 params = fmt.Sprintf("%s, input *%s", params, inputname) 70 - 71 70 default: 72 71 return fmt.Errorf("unsupported input encoding (RPC input): %q", s.Input.Encoding) 73 72 } ··· 843 842 } 844 843 845 844 if ts.Closed { 846 - pf(` 847 - default: 845 + pf(` default: 848 846 return fmt.Errorf("closed unions must match a listed schema") 849 847 `) 850 848 } else { 851 - pf(` 852 - default: 849 + pf(` default: 853 850 return nil 854 851 `) 855 852 ··· 877 874 pf("\t\treturn t.%s.MarshalCBOR(w)\n\t}\n", vname) 878 875 } 879 876 880 - pf("\treturn fmt.Errorf(\"can not marshal empty union as CBOR\")\n}\n") 877 + pf("\treturn fmt.Errorf(\"can not marshal empty union as CBOR\")\n}\n\n") 881 878 return nil 882 879 } 883 880 ··· 900 897 } 901 898 902 899 if ts.Closed { 903 - pf(` 904 - default: 900 + pf(` default: 905 901 return fmt.Errorf("closed unions must match a listed schema") 906 902 `) 907 903 } else { 908 - pf(` 909 - default: 904 + pf(` default: 910 905 return nil 911 906 `) 912 907