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 f153975 commit 851e411Copy full SHA for 851e411
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"
@@ -743,8 +744,7 @@ func (s *VllmSimulator) getDisplayedModelName(reqModel string) string {
743
744
745
func (s *VllmSimulator) showConfig(tgtLgr logr.Logger) error {
746
if tgtLgr == logr.Discard() {
- err := fmt.Errorf("target logger is nil, cannot show configuration")
747
- return err
+ return errors.New("target logger is nil, cannot show configuration")
748
}
749
cfgJSON, err := json.Marshal(s.config)
750
if err != nil {
0 commit comments