diff --git a/cmd/rm-main.go b/cmd/rm-main.go index 0c5c9140..619f3135 100644 --- a/cmd/rm-main.go +++ b/cmd/rm-main.go @@ -382,7 +382,7 @@ type removeOpts struct { } func printDryRunMsg(content *ClientContent, printModTime bool) { - if globalJSON { + if globalJSON || content == nil { return } if printModTime {