fix: more nlreturn and testifylint issues
- Add blank lines before return statements - Use require.Error instead of assert.Error for error assertions - Keep exact float64 comparisons as-is (they are integers from JSON)
This commit is contained in:
@@ -50,5 +50,6 @@ func DetermineStateDir(customConfigDir string) string {
|
||||
homeDir, _ := os.UserHomeDir()
|
||||
return filepath.Join(homeDir, ".config", AppID)
|
||||
}
|
||||
|
||||
return filepath.Join(configDir, AppID)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user