Skip to content

Commit a38087e

Browse files
SijaSantiago Palladino
authored and
Santiago Palladino
committedJan 19, 2017
Remove reduntant “?” from type definitions in bang accessors
1 parent 0cda903 commit a38087e

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed
 

‎src/compiler/crystal/semantic/call.cr

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ require "./type_lookup"
66
class Crystal::Call
77
property! scope : Type
88
property with_scope : Type?
9-
property! parent_visitor : MainVisitor?
9+
property! parent_visitor : MainVisitor
1010
property target_defs : Array(Def)?
1111
property expanded : ASTNode?
1212
property? uses_with_scope = false

‎src/compiler/crystal/tools/table_print.cr

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ module Crystal
5151

5252
alias RowTypes = Array(Cell) | Separator
5353

54-
property! last_string_row : Array(Cell)?
54+
property! last_string_row : Array(Cell)
5555
property columns : Array(Column)
5656

5757
def initialize(@io : IO)

‎src/http/client.cr

+1-1
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ class HTTP::Client
8383
{% if flag?(:without_openssl) %}
8484
getter! tls : Nil
8585
{% else %}
86-
getter! tls : OpenSSL::SSL::Context::Client?
86+
getter! tls : OpenSSL::SSL::Context::Client
8787
{% end %}
8888

8989
# Whether automatic compression/decompression is enabled.

‎src/openssl.cr

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ require "./openssl/lib_ssl"
5656
# ```
5757
module OpenSSL
5858
class Error < Exception
59-
getter! code : LibCrypto::ULong?
59+
getter! code : LibCrypto::ULong
6060

6161
def initialize(message = nil, fetched = false)
6262
@code ||= LibCrypto::ULong.new(0)

0 commit comments

Comments
 (0)
Please sign in to comment.