mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
all: change .ReturnType and .Type to .return_type and .typ (#6494)
This commit is contained in:
@@ -372,7 +372,7 @@ fn handle_conn<T>(conn net.Socket, mut app T) {
|
||||
mut vars := []string{cap: route_words_a.len}
|
||||
mut action := ''
|
||||
$for method in T.methods {
|
||||
$if method.ReturnType is Result {
|
||||
$if method.return_type is Result {
|
||||
attrs := method.attrs
|
||||
route_words_a = [][]string{}
|
||||
if attrs.len == 0 {
|
||||
@@ -473,7 +473,7 @@ fn handle_conn<T>(conn net.Socket, mut app T) {
|
||||
return
|
||||
}
|
||||
$for method in T.methods {
|
||||
$if method.ReturnType is Result {
|
||||
$if method.return_type is Result {
|
||||
// search again for method
|
||||
if action == method.name && method.attrs.len > 0 {
|
||||
// call action method
|
||||
|
Reference in New Issue
Block a user