Remove unused directory lookup
This commit is contained in:
@@ -75,9 +75,6 @@ func (c *Config[T]) Get() (bool, error) {
|
||||
}
|
||||
|
||||
func (c *Config[T]) Write() error {
|
||||
configDir := getConfigDir(c.Name)
|
||||
configFilepath := filepath.Join(configDir)
|
||||
|
||||
data, err := toml.Marshal(c.Config)
|
||||
if err != nil {
|
||||
return fmt.Errorf("Could not marshal config: %w", err)
|
||||
|
||||
Reference in New Issue
Block a user