mirror of
https://github.com/Azure/k8s-deploy.git
synced 2026-08-10 22:29:28 +08:00
Clean code
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user