mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
examples,tools: cleanup most warnings
This commit is contained in:
@ -27,7 +27,7 @@ pub fn validate_commit_exists(commit string) {
|
||||
if commit.len == 0 {
|
||||
return
|
||||
}
|
||||
cmd := "git cat-file -t \'$commit\' "
|
||||
cmd := "git cat-file -t '$commit' "
|
||||
if !scripting.exit_0_status(cmd) {
|
||||
eprintln('Commit: "$commit" does not exist in the current repository.')
|
||||
exit(3)
|
||||
|
@ -259,7 +259,7 @@ compdef _v v
|
||||
mut lines := []string{}
|
||||
list := auto_complete_request(sub_args[1..])
|
||||
for entry in list {
|
||||
lines << "COMPREPLY+=(\'$entry\')"
|
||||
lines << "COMPREPLY+=('$entry')"
|
||||
}
|
||||
println(lines.join('\n'))
|
||||
}
|
||||
@ -281,7 +281,7 @@ compdef _v v
|
||||
mut lines := []string{}
|
||||
list := auto_complete_request(sub_args[1..])
|
||||
for entry in list {
|
||||
lines << 'compadd -U -S \"\" -- \'$entry\';'
|
||||
lines << "compadd -U -S \"\" -- '$entry';"
|
||||
}
|
||||
println(lines.join('\n'))
|
||||
}
|
||||
|
Reference in New Issue
Block a user