瀏覽代碼

refactor(util): omit type & use short-hand assignment

rigormorrtiss 4 年之前
父節點
當前提交
d7c0fbb303
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      util/config.go

+ 1 - 1
util/config.go

@@ -22,7 +22,7 @@ func NewConfig() *Config {
 		panic(err)
 	}
 
-	var c Config = Config{
+	c := Config{
 		Mouse:            true,
 		GetMessagesLimit: 50,
 	}