diff options
| author | YURII D. <gkhelloworld@gmail.com> | 2025-02-18 18:20:19 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-02-18 17:20:19 +0100 |
| commit | f1084f3e8370d1d0ceb3a1e82517e7b1761be42a (patch) | |
| tree | d7a1b418d98001e97758d185dae364b14002ebc8 | |
| parent | 40e02d5d28e59dbeb6134afdce12536c602e6aa5 (diff) | |
* Update run.go
Remove "Error",
The "return" already implies an error.
Error strings should not be capitalized (unless beginning with proper nouns or acronyms) or end with punctuation, since they are usually printed following other context.
* Update dev.go
Remove "Error",
The "return" already implies an error.
Error strings should not be capitalized (unless beginning with proper nouns or acronyms) or end with punctuation, since they are usually printed following other context.
* Update run.go
* Update dev.go
| -rw-r--r-- | cmd/dev.go | 2 | ||||
| -rw-r--r-- | cmd/run.go | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -26,7 +26,7 @@ func (c *DevCommand) Run(args []string) error { cfg, err := parseConfigArgs(fs.Args()[1:]) if err != nil { - return fmt.Errorf("Error parsing config flags: %w", err) + return fmt.Errorf("error parsing config flags: %w", err) } return flyscrape.Dev(fs.Arg(0), cfg) @@ -26,7 +26,7 @@ func (c *RunCommand) Run(args []string) error { cfg, err := parseConfigArgs(fs.Args()[1:]) if err != nil { - return fmt.Errorf("Error parsing config flags: %w", err) + return fmt.Errorf("error parsing config flags: %w", err) } return flyscrape.Run(fs.Arg(0), cfg) |