Small optimization

This commit is contained in:
2022-05-13 11:33:52 +08:00
parent e471253b12
commit 3defcbbdc1

View File

@ -12,11 +12,12 @@ namespace GrasscutterTools.OpenCommand
public OpenCommandAPI(string host) public OpenCommandAPI(string host)
{ {
Host = host; Host = host;
API = host + "/opencommand/api";
} }
public string Host { get; } public string Host { get; }
private string API => Host + "/opencommand/api"; private readonly string API;
public string Token { get; set; } public string Token { get; set; }