tidy (OCIS-363)

This commit is contained in:
A.Unger
2020-08-19 16:17:36 +02:00
committed by Benedikt Kulmann
parent a828816458
commit d59bc0b4b9
3 changed files with 16 additions and 68 deletions
-2
View File
@@ -45,7 +45,6 @@ func (s Store) ListBundles(bundleType proto.Bundle_Type) ([]*proto.Bundle, error
// ReadBundle tries to find a bundle by the given id within the dataPath.
func (s Store) ReadBundle(bundleID string) (*proto.Bundle, error) {
// FIXME: locking should happen on the file here, not globally.
m.RLock()
defer m.RUnlock()
@@ -61,7 +60,6 @@ func (s Store) ReadBundle(bundleID string) (*proto.Bundle, error) {
// ReadSetting tries to find a setting by the given id within the dataPath.
func (s Store) ReadSetting(settingID string) (*proto.Setting, error) {
// FIXME: locking should happen on the file here, not globally.
m.RLock()
defer m.RUnlock()