Skip to content

Commit

Permalink
Fix indents and typo
Browse files Browse the repository at this point in the history
  • Loading branch information
battistowx authored Mar 28, 2024
1 parent dcb2adb commit 0f74dac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions earthaccess/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@ def _persist_user_credentials(self, username: str, password: str) -> bool:
my_netrc["urs.earthdata.nasa.gov"] = {"login": username, "password": password}
my_netrc.save()
urs_cookies_path = Path.home() / ".urs_cookies"
if not usr_cookies_path.exists():
if not urs_cookies_path.exists():
urs_cookies_path.write_text("")

# Create and write to .dodsrc file
Expand All @@ -383,7 +383,7 @@ def _persist_user_credentials(self, username: str, password: str) -> bool:
dodsrc_path.write_text(dodsrc_contents)


if platform.system() == "Windows":
if platform.system() == "Windows":
local_dodsrc_path = Path.cwd() / dodsrc_path.name
if not local_dodsrc_path.exists():
shutil.copy2(dodsrc_path, local_dodsrc_path)
Expand Down

0 comments on commit 0f74dac

Please sign in to comment.