Merge: Fix function comments based on best practices from Effective Go; #638

* commit 'f432eb360952e9bbf95448798ea6a89c4d93dec7':
  Fix function comments based on best practices from Effective Go
This commit is contained in:
Simon Zolin 2019-03-15 15:06:09 +03:00
commit a58bf0e24e
1 changed files with 1 additions and 1 deletions

View File

@ -263,7 +263,7 @@ func (filter *filter) Path() string {
return filepath.Join(config.ourWorkingDir, dataDir, filterDir, strconv.FormatInt(filter.ID, 10)+".txt") return filepath.Join(config.ourWorkingDir, dataDir, filterDir, strconv.FormatInt(filter.ID, 10)+".txt")
} }
// LastUpdated returns the time when the filter was last time updated // LastTimeUpdated returns the time when the filter was last time updated
func (filter *filter) LastTimeUpdated() time.Time { func (filter *filter) LastTimeUpdated() time.Time {
filterFilePath := filter.Path() filterFilePath := filter.Path()
if _, err := os.Stat(filterFilePath); os.IsNotExist(err) { if _, err := os.Stat(filterFilePath); os.IsNotExist(err) {