Skip to content

Commit 6fa11cd

Browse files
committed
chore: fix useless viper dependency
1 parent d164700 commit 6fa11cd

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pkg/client/cache/file_cache.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ limitations under the License.
1717
package cache
1818

1919
import (
20-
"github.com/spf13/viper"
2120
"io/ioutil"
2221
"path/filepath"
2322

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

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

5554
raw, err := proto.Marshal(root)
5655
if err != nil {

0 commit comments

Comments
 (0)