Code clean up
This commit is contained in:
@@ -51,7 +51,7 @@ func (s String) Parse() (string, error) {
|
||||
f, e := os.Open(fPath)
|
||||
|
||||
if e != nil {
|
||||
return "", fmt.Errorf("Unable to open %s: %s", fPath, e)
|
||||
return "", fmt.Errorf("unable to open %s: %s", fPath, e)
|
||||
}
|
||||
|
||||
defer f.Close()
|
||||
@@ -59,7 +59,7 @@ func (s String) Parse() (string, error) {
|
||||
fData, e := ioutil.ReadAll(f)
|
||||
|
||||
if e != nil {
|
||||
return "", fmt.Errorf("Unable to read from %s: %s", fPath, e)
|
||||
return "", fmt.Errorf("unable to read from %s: %s", fPath, e)
|
||||
}
|
||||
|
||||
return string(fData), nil
|
||||
@@ -74,6 +74,6 @@ func (s String) Parse() (string, error) {
|
||||
|
||||
default:
|
||||
return "", fmt.Errorf(
|
||||
"Scheme \"%s\" was unsupported", ss[:sSchemeLeadIdx])
|
||||
"scheme \"%s\" was unsupported", ss[:sSchemeLeadIdx])
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user