mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
all: remove unnecessary IError() casts
This commit is contained in:
@ -49,8 +49,8 @@ pub fn (mut app App) get_csrf_token() ?string {
|
||||
if app.csrf_cookie_value != '' {
|
||||
return app.csrf_cookie_value
|
||||
} else {
|
||||
return IError(CsrfError{
|
||||
return CsrfError{
|
||||
m: 'The CSRF-Token-Value is empty. Please check if you have setted a cookie!'
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user