mstruebing / tldr

Golang command line client for tldr https://github.com/tldr-pages/tldr
MIT License
262 stars 24 forks source link

Don't try to delete /tldr if XDG_CACHE_HOME is not set. #56

Closed fvbommel closed 3 years ago

fvbommel commented 3 years ago

What I did:

Test whether XDG_CACHE_HOME is empty before using it as a path prefix.

Why I did it:

Now it no longer tries to delete /tldr if this variable is not set (or set to an empty value).

Fixes #51.

codecov-io commented 3 years ago

Codecov Report

Merging #56 into master will not change coverage. The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master      #56   +/-   ##
=======================================
  Coverage   59.90%   59.90%           
=======================================
  Files           3        3           
  Lines         222      222           
=======================================
  Hits          133      133           
  Misses         57       57           
  Partials       32       32           

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 1766737...3fb4d29. Read the comment docs.