From 79a80fbbf278e0eb743a79e2c0c252817537434f Mon Sep 17 00:00:00 2001 From: hhvn Date: Mon, 14 Aug 2023 14:04:41 +0100 Subject: Creating and destroying the windows --- common/common.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'common') 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) { -- cgit v1.2.3