fix nil pointer when no server provided (or miss-spelled) #1
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "tropicalshadow/plugstep:main"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@ -15,1 +17,4 @@if config.Server == (ServerConfig{}) {log.Error("no server configuration found in config file")return nil, errors.New("no server configuration found in config file")We use
fmt.Errorffor all returned errors, noterrors.NewI am still new to the ways of go, fmt.Errorf has been put into action, I have also removed the prior error log due to the returning error being logged anyways
LGTM