add variable and method comments
This commit is contained in:
@@ -17,6 +17,7 @@ type Config struct {
|
||||
ConsumerToken string
|
||||
}
|
||||
|
||||
// Populated checks if any field has been populated.
|
||||
func (c Config) Populated() bool {
|
||||
return c.AuthToken != "" || c.ConsumerToken != "" || c.BaseURL != ""
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user