Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,14 +102,13 @@ func parseTuningFile(tuningFilePath, cmdLinePath string) ([]types.TuneArgument,
}
// Read and parse the file
file, err := os.Open(tuningFilePath)
// Clean up
defer file.Close()

if err != nil {
// If we have an issue reading return an error
glog.Infof("Unable to open %s for reading: %v", tuningFilePath, err)
return addArguments, deleteArguments, err
}
// Clean up
defer file.Close()

// Parse the tuning lines
scanner := bufio.NewScanner(file)
Expand Down