mirror of
https://github.com/github/codeql.git
synced 2026-04-30 11:15:13 +02:00
Clarify some comments
As suggested in code review Co-authored-by: Max Schaefer <54907921+max-schaefer@users.noreply.github.com>
This commit is contained in:
@@ -47,7 +47,7 @@ func GetModDir(pkgpath string, modflag string) string {
|
||||
}
|
||||
|
||||
if strings.TrimSpace(string(mod)) == "<nil>" {
|
||||
// if modules aren't being used, return nothing
|
||||
// if modules aren't being used, return the empty string
|
||||
return ""
|
||||
}
|
||||
|
||||
@@ -104,7 +104,7 @@ func GetPkgDir(pkgpath string, modflag string) string {
|
||||
return abs
|
||||
}
|
||||
|
||||
// FileExists tests whether the file at `filename` exists.
|
||||
// FileExists tests whether the file at `filename` exists and is not a directory.
|
||||
func FileExists(filename string) bool {
|
||||
info, err := os.Stat(filename)
|
||||
if err != nil && !os.IsNotExist(err) {
|
||||
|
||||
Reference in New Issue
Block a user