1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

vweb: run vfmt, add it to v test-cleancode

This commit is contained in:
Delyan Angelov
2020-12-27 11:38:12 +02:00
parent 1b9d514275
commit d563261e58
8 changed files with 94 additions and 181 deletions

View File

@@ -86,9 +86,7 @@ pub fn (mut app App) json() vweb.Result {
}
pub fn (mut app App) shutdown() vweb.Result {
session_key := app.vweb.get_cookie('skey') or {
return app.vweb.not_found()
}
session_key := app.vweb.get_cookie('skey') or { return app.vweb.not_found() }
if session_key != 'superman' {
return app.vweb.not_found()
}