diff options
Diffstat (limited to 'common/common.go')
| -rw-r--r-- | common/common.go | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/common/common.go b/common/common.go index 20c2c0a..00d58ee 100644 --- a/common/common.go +++ b/common/common.go @@ -12,11 +12,7 @@ func Perror(function string, err error) error { func Error(format string, a ... any) (int, error) { fmt.Fprintf(os.Stderr, "error: ") - if (len(a) == 0) { - return fmt.Fprintf(os.Stderr, format) - } else { - return fmt.Fprintf(os.Stderr, format, a) - } + return fmt.Fprintf(os.Stderr, format, a...) } func Intify(s string) (int, error) { |