Skip to content

Commit

Permalink
Correct merge conflict errors
Browse files Browse the repository at this point in the history
  • Loading branch information
IvenBach committed Jun 3, 2019
1 parent 0ec32a0 commit a2139a2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
Expand Up @@ -14,7 +14,7 @@ public class ConfigurationServiceBase<T> : IConfigurationService<T>

public ConfigurationServiceBase(IPersistenceService<T> persister, IDefaultSettings<T> defaultSettings)
{
this._persister = persister;
_persister = persister;
Defaults = defaultSettings;
}

Expand All @@ -33,7 +33,7 @@ protected T LoadCacheValue()
if (CurrentValue == null)
{
T defaults = ReadDefaults();
T newValue = persister.Load() ?? defaults;
T newValue = _persister.Load() ?? defaults;
CurrentValue = newValue;
}
return CurrentValue;
Expand Down Expand Up @@ -68,15 +68,15 @@ public virtual void Save(T settings)

public virtual T Import(string path)
{
T loaded = persister.Load(path);
T loaded = _persister.Load(path);
Save(loaded);
return Read();
}

public virtual void Export(string path)
{
T current = Read();
persister.Save(current, path);
_persister.Save(current, path);
}
}
}
Expand Up @@ -62,8 +62,6 @@ protected override void Write(T toSerialize, string path)
}
}

EnsurePathExists(path);

using (var xml = XmlWriter.Create(path, OutputXmlSettings))
{
doc.WriteTo(xml);
Expand Down

0 comments on commit a2139a2

Please sign in to comment.