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:
@@ -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()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user