Skip to content

Commit

Permalink
fix: Errorf -> errors.New
Browse files Browse the repository at this point in the history
  • Loading branch information
notJoon committed Jan 23, 2025
1 parent 691d60d commit 148300d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion gnovm/cmd/gno/doctest.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package main

import (
"context"
"errors"
"flag"
"fmt"
"os"
Expand Down Expand Up @@ -58,7 +59,7 @@ func (c *doctestCfg) RegisterFlags(fs *flag.FlagSet) {

func execDoctest(cfg *doctestCfg, _ []string, io commands.IO) error {
if cfg.markdownPath == "" {
return fmt.Errorf("markdown file path is required")
return errors.New("markdown file path is required")
}

Check warning on line 63 in gnovm/cmd/gno/doctest.go

View check run for this annotation

Codecov / codecov/patch

gnovm/cmd/gno/doctest.go#L62-L63

Added lines #L62 - L63 were not covered by tests

content, err := fetchMarkdown(cfg.markdownPath)
Expand Down

0 comments on commit 148300d

Please sign in to comment.