Skip to content

Commit 1baa095

Browse files
committed
ref: sprintf linter warnings
1 parent 200df2b commit 1baa095

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

internal/demo/demo.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ func GetDemoFromPath(demoPath string) (*Demo, error) {
8383
file, err := os.Open(demoPath)
8484
if err != nil {
8585
if errors.Is(err, os.ErrNotExist) {
86-
return nil, fmt.Errorf(fmt.Sprintf("demo file \"%s\" not found", demoPath))
86+
return nil, fmt.Errorf("demo file %q not found", demoPath)
8787
}
8888
return nil, err
8989
}

pkg/api/analyzer.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ func analyzeDemo(demoPath string, options AnalyzeDemoOptions) (*Match, error) {
8282
file, err := os.Open(demoPath)
8383
if err != nil {
8484
if errors.Is(err, os.ErrNotExist) {
85-
return nil, fmt.Errorf(fmt.Sprintf("demo file \"%s\" not found", demoPath))
85+
return nil, fmt.Errorf("demo file %q not found", demoPath)
8686
}
8787
return nil, err
8888
}

0 commit comments

Comments
 (0)