From f020e71ed2bfa3781596895c3f4891e421b7590a Mon Sep 17 00:00:00 2001 From: Stephen von Takach Date: Mon, 5 Aug 2019 18:35:25 +1000 Subject: [PATCH] fix abstract base class warnings --- .gitignore | 2 ++ shard.yml | 2 +- src/promise/deferred_promise.cr | 4 ++-- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 0792935..e7c5e30 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,5 @@ lib .shards app *.dwarf +*.lock +bin/ameba diff --git a/shard.yml b/shard.yml index df0c397..be387ba 100644 --- a/shard.yml +++ b/shard.yml @@ -1,5 +1,5 @@ name: promise -version: 1.1.2 +version: 1.1.3 development_dependencies: ameba: diff --git a/src/promise/deferred_promise.cr b/src/promise/deferred_promise.cr index 4a70c61..7a8708c 100644 --- a/src/promise/deferred_promise.cr +++ b/src/promise/deferred_promise.cr @@ -30,7 +30,7 @@ class Promise::DeferredPromise(Input) < Promise t end - def type + def type : Class Input end @@ -96,7 +96,7 @@ class Promise::DeferredPromise(Input) < Promise end # Used to create a generic promise if all we care about is success or failure - def then + def then : DeferredPromise(Nil) self.then { nil } end