Skip to content

Commit

Permalink
[#412] refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
lidiamokevnina committed Apr 2, 2024
1 parent 6f0e28c commit 6415c92
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/uffizzi/cli/uninstall.rb
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def unset_account_installation
end

def namespace
options[:namespace] || InstallService.current_namespace || InstallService::DEFAULT_NAMESPACE
options[:namespace] || InstallService.current_namespace
end

def server
Expand Down
2 changes: 1 addition & 1 deletion lib/uffizzi/services/install_service.rb
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ def current_namespace
kubeconfig = KubeconfigService.read_kubeconfig(path)
return if kubeconfig.nil?

KubeconfigService.get_current_namespace(kubeconfig)
KubeconfigService.get_current_namespace(kubeconfig) || DEFAULT_NAMESPACE
end

private
Expand Down

0 comments on commit 6415c92

Please sign in to comment.