golint: Fixup issues found in the report
This also increases the max allowed to 5% -- I'm happy to make this lower if someone asks.
This commit is contained in:
@@ -49,10 +49,10 @@ func NewGAPI(data gapi.Data, file *string) (*GAPI, error) {
|
||||
// Init initializes the yamlgraph GAPI struct.
|
||||
func (obj *GAPI) Init(data gapi.Data) error {
|
||||
if obj.initialized {
|
||||
return fmt.Errorf("Already initialized!")
|
||||
return fmt.Errorf("already initialized")
|
||||
}
|
||||
if obj.File == nil {
|
||||
return fmt.Errorf("The File param must be specified!")
|
||||
return fmt.Errorf("the File param must be specified")
|
||||
}
|
||||
obj.data = data // store for later
|
||||
obj.closeChan = make(chan struct{})
|
||||
|
||||
Reference in New Issue
Block a user