Skip to content

Commit

Permalink
don't error if nil
Browse files Browse the repository at this point in the history
  • Loading branch information
dovholuknf committed May 23, 2022
1 parent c379dd1 commit 034123f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion zssh/zscp/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -199,5 +199,7 @@ func after(value string, a string) string {
func main() {
rootCmd.AddCommand(enrollment.NewEnrollCommand())
e := rootCmd.Execute()
logrus.Error(e)
if e != nil {
logrus.Error(e)
}
}
4 changes: 3 additions & 1 deletion zssh/zssh/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,5 +52,7 @@ func init() {
func main() {
rootCmd.AddCommand(enrollment.NewEnrollCommand())
e := rootCmd.Execute()
logrus.Error(e)
if e != nil {
logrus.Error(e)
}
}

0 comments on commit 034123f

Please sign in to comment.