mirror of
https://github.com/Azure/k8s-deploy.git
synced 2026-04-09 06:52:18 +08:00
Clean code
This commit is contained in:
parent
d784fb6c4d
commit
8e795671c2
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user