From dae1e9ca3455570ffc8063d9d5f051523be96a41 Mon Sep 17 00:00:00 2001 From: Eduard Urbach Date: Wed, 24 Apr 2019 00:20:43 +0900 Subject: [PATCH] Removed goimports --- makefile | 4 ---- scripts/Application.ts | 1 + 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/makefile b/makefile index d9c03753..9f629ee1 100644 --- a/makefile +++ b/makefile @@ -12,7 +12,6 @@ IPTABLES=@sudo iptables IP6TABLES=@sudo ip6tables PACK:=$(shell command -v pack 2> /dev/null) RUN:=$(shell command -v run 2> /dev/null) -GOIMPORTS:=$(shell command -v goimports 2> /dev/null) SERVICEFILE=/etc/systemd/system/animenotifier.service # Determine the name of the platform @@ -51,13 +50,10 @@ pack: go install github.com/aerogo/pack run: go install github.com/aerogo/run -goimports: - go install golang.org/x/tools/cmd/goimports tools: ifeq ($(OSNAME),OSX) brew install coreutils endif - @make goimports @make pack @make run service: diff --git a/scripts/Application.ts b/scripts/Application.ts index 19f6a127..b9160b55 100644 --- a/scripts/Application.ts +++ b/scripts/Application.ts @@ -58,6 +58,7 @@ export default class Application { else resolve(request.responseText) } + request.onabort = () => console.warn("Request canceled:", request) request.open("GET", url, true) request.send()