We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 02c76c6 commit c7b5458Copy full SHA for c7b5458
pkg/llm-d-inference-sim/simulator.go
@@ -20,6 +20,7 @@ package llmdinferencesim
20
import (
21
"context"
22
"encoding/json"
23
+ "errors"
24
"fmt"
25
"net"
26
"os"
@@ -717,8 +718,7 @@ func (s *VllmSimulator) getDisplayedModelName(reqModel string) string {
717
718
719
func (s *VllmSimulator) showConfig(tgtLgr logr.Logger) error {
720
if tgtLgr == logr.Discard() {
- err := fmt.Errorf("target logger is nil, cannot show configuration")
721
- return err
+ return errors.New("target logger is nil, cannot show configuration")
722
}
723
cfgJSON, err := json.Marshal(s.config)
724
if err != nil {
0 commit comments