Przeglądaj źródła

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

rigormorrtiss 4 lat temu
rodzic
commit
d7c0fbb303
1 zmienionych plików z 1 dodań i 1 usunięć
  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,
 	}