Skip to content

Commit

Permalink
fix abstract base class warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
stakach committed Aug 5, 2019
1 parent 0cd5a3a commit f020e71
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,5 @@ lib
.shards
app
*.dwarf
*.lock
bin/ameba
2 changes: 1 addition & 1 deletion shard.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: promise
version: 1.1.2
version: 1.1.3

development_dependencies:
ameba:
Expand Down
4 changes: 2 additions & 2 deletions src/promise/deferred_promise.cr
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class Promise::DeferredPromise(Input) < Promise
t
end

def type
def type : Class
Input
end

Expand Down Expand Up @@ -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

Expand Down

0 comments on commit f020e71

Please sign in to comment.