Skip to content

Commit 6716123

Browse files
committed
actually make pytest happy
1 parent e325c3e commit 6716123

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

vetiver/data/__init__.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,8 @@ def __dir__():
1212

1313
def __getattr__(k):
1414
import pandas as pd
15-
f_path = None
16-
if k == "mtcars":
17-
f_path = sources.get("mtcars")
18-
elif k == "chicago":
15+
f_path = sources.get("mtcars")
16+
if k == "chicago":
1917
f_path = sources.get("chicago")
2018

2119
return pd.read_csv(f_path)

0 commit comments

Comments
 (0)