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:
commit
a58bf0e24e
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue