Clean code

This commit is contained in:
Vidya Reddy
2022-07-20 21:55:47 +05:30
parent d784fb6c4d
commit 8e795671c2
+2 -3
View File
@@ -77,10 +77,9 @@ export function getNewCanaryResource(
export async function fetchResource(
kubectl: Kubectl,
kind: string,
name: string,
annotations: {[key: string]: string} = {}
name: string
) {
const result = await kubectl.getResource(kind, name, annotations)
const result = await kubectl.getResource(kind, name)
if (!result || result?.stderr) {
return null