mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
checker: arr1=arr2 warning
This commit is contained in:
@@ -11,7 +11,7 @@ pub fn args_after(cut_word string) []string {
|
||||
}
|
||||
mut cargs := []string{}
|
||||
if cut_word !in args {
|
||||
cargs = args
|
||||
cargs = args.clone()
|
||||
} else {
|
||||
mut found := false
|
||||
cargs << args[0]
|
||||
@@ -37,7 +37,7 @@ pub fn args_before(cut_word string) []string {
|
||||
}
|
||||
mut cargs := []string{}
|
||||
if cut_word !in args {
|
||||
cargs = args
|
||||
cargs = args.clone()
|
||||
} else {
|
||||
cargs << args[0]
|
||||
for a in args[1..] {
|
||||
|
||||
Reference in New Issue
Block a user