Skip to content

Commit

Permalink
refactor: use dot syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
KSXGitHub committed Feb 1, 2024
1 parent 07b8754 commit 7001133
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions lib/installer.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,14 +87,14 @@ const sourceLineForShell = (scriptname, shell) => {
*/
const isInShellConfig = filename =>
[
SHELL_LOCATIONS['bash'],
SHELL_LOCATIONS['zsh'],
SHELL_LOCATIONS['fish'],
SHELL_LOCATIONS['pwsh'],
untildify(SHELL_LOCATIONS['bash']),
untildify(SHELL_LOCATIONS['zsh']),
untildify(SHELL_LOCATIONS['fish']),
untildify(SHELL_LOCATIONS['pwsh']),
SHELL_LOCATIONS.bash,
SHELL_LOCATIONS.zsh,
SHELL_LOCATIONS.fish,
SHELL_LOCATIONS.pwsh,
untildify(SHELL_LOCATIONS.bash),
untildify(SHELL_LOCATIONS.zsh),
untildify(SHELL_LOCATIONS.fish),
untildify(SHELL_LOCATIONS.pwsh),
].includes(filename);

/**
Expand Down

0 comments on commit 7001133

Please sign in to comment.