From 89bbbe0ec0dc807c5b2119e749e50efafc3b2e47 Mon Sep 17 00:00:00 2001 From: Alexander Medvednikov Date: Sun, 3 Jan 2021 17:03:18 +0100 Subject: [PATCH] vweb: vfmt vweb.v --- vlib/vweb/vweb.v | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vlib/vweb/vweb.v b/vlib/vweb/vweb.v index 3b2789a66c..e93179e374 100644 --- a/vlib/vweb/vweb.v +++ b/vlib/vweb/vweb.v @@ -419,7 +419,7 @@ fn handle_conn(mut conn net.TcpConn, mut app T) { } else { route_words_a = attrs.filter(it.to_lower() != 'get').map(it[1..].split('/')) } - if attrs.len == 0 || (attrs.len == 1 && route_words_a.len == 0 ) { + if attrs.len == 0 || (attrs.len == 1 && route_words_a.len == 0) { // No routing for this method. If it matches, call it and finish matching // since such methods have a priority. // For example URL `/register` matches route `/:user`, but `fn register()`