浏览代码

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,
 	}