Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
hardillb committed Sep 25, 2023
1 parent eb33703 commit 6390448
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions kubernetes.js
Original file line number Diff line number Diff line change
Expand Up @@ -382,8 +382,8 @@ const createProject = async (project, options) => {
throw err
}

await new Promise( (resolve, reject) => {
const pollInterval = setInterval( async () => {
await new Promise((resolve, reject) => {
const pollInterval = setInterval(async () => {
try {
await this._k8sAppApi.readNamespacedDeployment(project.safeName, this._namespace)
clearInterval(pollInterval)
Expand All @@ -404,8 +404,8 @@ const createProject = async (project, options) => {
}

const prefix = project.safeName.match(/^[0-9]/) ? 'srv-' : ''
await new Promise( (resolve, reject) => {
const pollInterval = setInterval( async () => {
await new Promise((resolve, reject) => {
const pollInterval = setInterval(async () => {
try {
await this._k8sApi.readNamespacedService(prefix + project.safeName, this._namespace)
clearInterval(pollInterval)
Expand All @@ -425,8 +425,8 @@ const createProject = async (project, options) => {
}
}

await new Promise( (resolve, reject) => {
const pollInterval = setInterval( async () => {
await new Promise((resolve, reject) => {
const pollInterval = setInterval(async () => {
try {
await this._k8sNetApi.readNamespacedIngress(project.safeName, this._namespace)
clearInterval(pollInterval)
Expand Down Expand Up @@ -700,9 +700,9 @@ module.exports = {
} catch (err) {
this._app.log.error(`[k8s] Project ${project.id} - error deleting ingress: ${err.toString()}`)
}
await new Promise( (resolve, reject) => {
const pollInterval = setInterval( async () => {

await new Promise((resolve, reject) => {
const pollInterval = setInterval(async () => {
try {
await this._k8sNetApi.readNamespacedIngress(project.safeName, this._namespace)
} catch (err) {
Expand All @@ -719,8 +719,8 @@ module.exports = {
this._app.log.error(`[k8s] Project ${project.id} - error deleting service: ${err.toString()}`)
}

await new Promise( (resolve, reject) => {
const pollInterval = setInterval( async () => {
await new Promise((resolve, reject) => {
const pollInterval = setInterval(async () => {
try {
await this._k8sApi.readNamespacedService(prefix + project.safeName, this._namespace)
} catch (err) {
Expand Down

0 comments on commit 6390448

Please sign in to comment.