Skip to content

Commit

Permalink
chore: fix useless viper dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
mmeloni committed May 19, 2020
1 parent d164700 commit 6fa11cd
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pkg/client/cache/file_cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ limitations under the License.
package cache

import (
"github.com/spf13/viper"
"io/ioutil"
"path/filepath"

Expand Down Expand Up @@ -50,7 +49,7 @@ func (w *fileCache) Get(serverUuid string) (*schema.Root, error) {
}

func (w *fileCache) Set(root *schema.Root, serverUuid string) error {
fn := filepath.Join(viper.GetString("dir"), string(getRootFileName([]byte(ROOT_FN), []byte(serverUuid))))
fn := filepath.Join(w.Dir, string(getRootFileName([]byte(ROOT_FN), []byte(serverUuid))))

raw, err := proto.Marshal(root)
if err != nil {
Expand Down

0 comments on commit 6fa11cd

Please sign in to comment.