Optimize code

This commit is contained in:
Wang Guoliang
2018-01-24 13:43:51 +08:00
committed by Ta-Ching Chen
parent 01bcfad44a
commit b578819202
11 changed files with 21 additions and 21 deletions
+1 -1
View File
@@ -169,7 +169,7 @@ func waitForCRDs(crdClient *rest.RESTClient) error {
return nil
}
if time.Now().Sub(start) > 30*time.Second {
if time.Since(start) > 30*time.Second {
return errors.New("timeout waiting for CRDs")
}
}