mirror of
https://github.com/docker/docs.git
synced 2026-11-05 00:14:17 +03:00
Switch to errors.New
Signed-off-by: Eric Sage <eric.david.sage@gmail.com>
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
package commands
|
||||
|
||||
import (
|
||||
"errors"
|
||||
"fmt"
|
||||
"os"
|
||||
"strings"
|
||||
@@ -88,7 +89,7 @@ func parseFilters(filters []string) (FilterOptions, error) {
|
||||
for _, f := range filters {
|
||||
kv := strings.SplitN(f, "=", 2)
|
||||
if len(kv) != 2 {
|
||||
return options, fmt.Errorf("Unsupported filter syntax.")
|
||||
return options, errors.New("Unsupported filter syntax.")
|
||||
}
|
||||
key, value := kv[0], kv[1]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user