diff --git a/README.md b/README.md index 47dc91b..ef39b5b 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@

dexus

- + Stars diff --git a/internal/adapters/fileredirect/yaml.go b/internal/adapters/fileredirect/yaml.go index 3fffaf7..9b16111 100644 --- a/internal/adapters/fileredirect/yaml.go +++ b/internal/adapters/fileredirect/yaml.go @@ -12,8 +12,8 @@ import ( ) var ( - ErrStoreIsNotInitialized = errors.New("store is not initialized") - ErrUnableToOpenYamlFile = errors.New("unable to open the file") + ErrStoreIsNotInitialized = errors.New("store is not initialized") + ErrUnableToOpenYamlFile = errors.New("unable to open the file") ErrUnableToDecodeYamlFile = errors.New("unable to decode yaml file") ) @@ -30,8 +30,8 @@ func initStore(logger ports.Logger, filePath string) (*RedirectionStore, error) f, err := os.Open(filepath.FromSlash(filePath)) defer func() { err := f.Close() - if err != nil{ - logger.Error("unable to close file:",err) + if err != nil { + logger.Error("unable to close file:", err) } }() if err != nil { diff --git a/internal/adapters/memcache/memcache.go b/internal/adapters/memcache/memcache.go index 73f39cd..111c3b5 100644 --- a/internal/adapters/memcache/memcache.go +++ b/internal/adapters/memcache/memcache.go @@ -18,7 +18,7 @@ type MemCache struct { func NewMemCache(l ports.Logger) *MemCache { return &MemCache{ - logger: l, + logger: l, cacheMap: make(CacheMap), } diff --git a/internal/adapters/rest/middleware/proxy_response_writer_test.go b/internal/adapters/rest/middleware/proxy_response_writer_test.go index 4ea9916..a77c76c 100644 --- a/internal/adapters/rest/middleware/proxy_response_writer_test.go +++ b/internal/adapters/rest/middleware/proxy_response_writer_test.go @@ -23,7 +23,7 @@ func TestProxyResponseWriter_Write(t *testing.T) { recorder := httptest.NewRecorder() proxyWriter := newTestResponseWriter(t, recorder) _, err := proxyWriter.Write([]byte(data)) - if err != nil{ + if err != nil { t.Fatal("unable to write data to response writer:", err) } if !bytes.Equal(recorder.Body.Bytes(), []byte(data)) {