small corrections 2

This commit is contained in:
Rob1103 2023-05-19 11:27:41 +02:00
parent de071b8c0c
commit c8b7d3ddd1

View file

@ -236,11 +236,8 @@ func conformPatchPath(match *[]string, index int) {
extension := filepath.Ext((*match)[index])
if extension == ".h" || extension == ".hpp" || extension == ".hcc" {
(*match)[index] = "include" + u.SEP + filepath.Base((*match)[index])
} else if extension == ".c" || extension == ".cpp" || extension == ".cc" {
(*match)[index] = filepath.Base((*match)[index])
} else {
u.PrintWarning("Unsupported extension for file: " +
filepath.Base((*match)[index]))
(*match)[index] = filepath.Base((*match)[index])
}
}