Fix some golint warnings

This commit is contained in:
Zachary Yedidia
2017-10-01 12:42:23 -04:00
parent 28acfc6d3f
commit 46ced988eb
6 changed files with 42 additions and 36 deletions

View File

@@ -56,6 +56,7 @@ func Max(a, b int) int {
return b
}
// FSize gets the size of a file
func FSize(f *os.File) int64 {
fi, _ := f.Stat()
// get the size
@@ -246,6 +247,7 @@ func lcs(a, b string) string {
return lcs
}
// CommonSubstring gets a common substring among the inputs
func CommonSubstring(arr ...string) string {
commonStr := arr[0]