From 47f797bd4a1b723b966db2cc3bad2b9316ecec22 Mon Sep 17 00:00:00 2001 From: Tony Kovanen Date: Sun, 29 May 2016 23:11:35 +0300 Subject: [PATCH] Exit early for `304` --- lib/alias.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/alias.js b/lib/alias.js index ce78bd3..315d0cf 100644 --- a/lib/alias.js +++ b/lib/alias.js @@ -59,6 +59,8 @@ export default class Alias extends Now { body: { alias } }); + if (304 === res.status) return; + const body = await res.json(); if (this._debug) console.timeEnd(`> [debug] /now/deployments/${depl.uid}/aliases #${attempt}`);