summaryrefslogtreecommitdiff
path: root/unix.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-11-06 15:51:29 -0600
committerJeff Carr <[email protected]>2024-11-06 15:51:29 -0600
commit31355467a58e87673f959dbfed933ad02fba0733 (patch)
tree9815ffb3fcfdbada9c9dfa46bcd2532f70c79630 /unix.go
parente6f883a9b5e62cb5d52e5c2dbc37d3d15db11b12 (diff)
dumb nil panicv0.22.7
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'unix.go')
-rw-r--r--unix.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/unix.go b/unix.go
index 6d90676..d4d48de 100644
--- a/unix.go
+++ b/unix.go
@@ -221,6 +221,10 @@ func IsDirectory(path string) bool {
}
func (rs *RepoStatus) Exists(filename string) bool {
+ if rs == nil {
+ log.Warn("rs == nil for Exists()")
+ panic(-1)
+ }
testf := filepath.Join(rs.Path(), filename)
if Exists(testf) {
return true