Skip to content

Commit

Permalink
refactor ~ improve XDG function naming/definition
Browse files Browse the repository at this point in the history
  • Loading branch information
rivy committed Feb 10, 2021
1 parent f9c5202 commit 5cf2b18
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/lib/XDG.ts
Original file line number Diff line number Diff line change
Expand Up @@ -182,9 +182,9 @@ const windows = () => {
// eslint-disable-next-line functional/no-class
class XDG_ {
constructor() {
const XDG = function () {
return new XDG_();
};
function XDG(): XDG {
return new XDG_() as XDG;
}

const isMacOS = /^darwin$/i.test(process.platform);
const isWinOS = /^win/i.test(process.platform);
Expand Down

0 comments on commit 5cf2b18

Please sign in to comment.