mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
ci: fix v test-cleancode
This commit is contained in:
@@ -159,7 +159,7 @@ fn (mut am AssetManager) add(asset_type string, file string) bool {
|
||||
} else if asset_type == 'js' {
|
||||
am.js << asset
|
||||
} else {
|
||||
panic('$unknown_asset_type_error ($asset_type).')
|
||||
panic('$assets.unknown_asset_type_error ($asset_type).')
|
||||
}
|
||||
return true
|
||||
}
|
||||
@@ -176,7 +176,7 @@ fn (am AssetManager) exists(asset_type string, file string) bool {
|
||||
|
||||
fn (am AssetManager) get_assets(asset_type string) []Asset {
|
||||
if asset_type != 'css' && asset_type != 'js' {
|
||||
panic('$unknown_asset_type_error ($asset_type).')
|
||||
panic('$assets.unknown_asset_type_error ($asset_type).')
|
||||
}
|
||||
assets := if asset_type == 'css' { am.css } else { am.js }
|
||||
return assets
|
||||
|
||||
Reference in New Issue
Block a user