Skip to content

Commit

Permalink
make new lint happy.
Browse files Browse the repository at this point in the history
  • Loading branch information
PaienNate committed Oct 18, 2024
1 parent a6d6f52 commit 095bbf1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion utils/oschecker/checker_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ package oschecker

import (
"bytes"
"errors"
"fmt"
"os/exec"
"strconv"
Expand Down Expand Up @@ -72,7 +73,7 @@ func execShell(cmdStr string) (string, error) {
}
}
fmt.Printf("ExecShell-errMsg-> %s\n", errMsg)
return errMsg, fmt.Errorf(errMsg)
return errMsg, errors.New(errMsg)
}
return stdout.String(), nil
}

0 comments on commit 095bbf1

Please sign in to comment.