mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
parser: check (mut f Foo)
syntax
This commit is contained in:
@ -33,12 +33,12 @@ pub fn new_manager() &AssetManager {
|
||||
}
|
||||
|
||||
// add_css adds a css asset
|
||||
pub fn (am mut AssetManager) add_css(file string) bool {
|
||||
pub fn (mut am AssetManager) add_css(file string) bool {
|
||||
return am.add('css', file)
|
||||
}
|
||||
|
||||
// add_js adds a js asset
|
||||
pub fn (am mut AssetManager) add_js(file string) bool {
|
||||
pub fn (mut am AssetManager) add_js(file string) bool {
|
||||
return am.add('js', file)
|
||||
}
|
||||
|
||||
@ -149,8 +149,8 @@ fn (am AssetManager) include(asset_type string, combine bool) string {
|
||||
}
|
||||
|
||||
// dont return option until size limit is removed
|
||||
// fn (am mut AssetManager) add(asset_type, file string) ?bool {
|
||||
fn (am mut AssetManager) add(asset_type, file string) bool {
|
||||
// fn (mut am AssetManager) add(asset_type, file string) ?bool {
|
||||
fn (mut am AssetManager) add(asset_type, file string) bool {
|
||||
if !os.exists(file) {
|
||||
// return error('vweb.assets: cannot add asset $file, it does not exist')
|
||||
return false
|
||||
|
Reference in New Issue
Block a user