From a54c9d6ffc3352f757f41f242ece76aab9b40cd8 Mon Sep 17 00:00:00 2001 From: Peleus <245629560@qq.com> Date: Mon, 22 Jan 2024 16:58:09 +0800 Subject: [PATCH] Remove spaces --- outputer.go | 1 - 1 file changed, 1 deletion(-) diff --git a/outputer.go b/outputer.go index 4e5ce513..5c0c30db 100644 --- a/outputer.go +++ b/outputer.go @@ -59,7 +59,6 @@ func (c Carbon) ToMonthString(timezone ...string) string { // ToShortMonthString outputs a string in short month layout like "Jan", i18n is supported. // 输出缩写月份字符串,支持i18n func (c Carbon) ToShortMonthString(timezone ...string) string { - if len(timezone) > 0 { c.loc, c.Error = getLocationByTimezone(timezone[0]) }