small corrections 2
This commit is contained in:
parent
de071b8c0c
commit
c8b7d3ddd1
1 changed files with 1 additions and 4 deletions
|
@ -236,11 +236,8 @@ func conformPatchPath(match *[]string, index int) {
|
||||||
extension := filepath.Ext((*match)[index])
|
extension := filepath.Ext((*match)[index])
|
||||||
if extension == ".h" || extension == ".hpp" || extension == ".hcc" {
|
if extension == ".h" || extension == ".hpp" || extension == ".hcc" {
|
||||||
(*match)[index] = "include" + u.SEP + filepath.Base((*match)[index])
|
(*match)[index] = "include" + u.SEP + filepath.Base((*match)[index])
|
||||||
} else if extension == ".c" || extension == ".cpp" || extension == ".cc" {
|
|
||||||
(*match)[index] = filepath.Base((*match)[index])
|
|
||||||
} else {
|
} else {
|
||||||
u.PrintWarning("Unsupported extension for file: " +
|
(*match)[index] = filepath.Base((*match)[index])
|
||||||
filepath.Base((*match)[index]))
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue