Skip to content

Commit

Permalink
Remove reduntant “?” from type definitions in bang accessors
Browse files Browse the repository at this point in the history
  • Loading branch information
Sija authored and Santiago Palladino committed Jan 19, 2017
1 parent 0cda903 commit a38087e
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/compiler/crystal/semantic/call.cr
Expand Up @@ -6,7 +6,7 @@ require "./type_lookup"
class Crystal::Call
property! scope : Type
property with_scope : Type?
property! parent_visitor : MainVisitor?
property! parent_visitor : MainVisitor
property target_defs : Array(Def)?
property expanded : ASTNode?
property? uses_with_scope = false
Expand Down
2 changes: 1 addition & 1 deletion src/compiler/crystal/tools/table_print.cr
Expand Up @@ -51,7 +51,7 @@ module Crystal

alias RowTypes = Array(Cell) | Separator

property! last_string_row : Array(Cell)?
property! last_string_row : Array(Cell)
property columns : Array(Column)

def initialize(@io : IO)
Expand Down
2 changes: 1 addition & 1 deletion src/http/client.cr
Expand Up @@ -83,7 +83,7 @@ class HTTP::Client
{% if flag?(:without_openssl) %}
getter! tls : Nil
{% else %}
getter! tls : OpenSSL::SSL::Context::Client?
getter! tls : OpenSSL::SSL::Context::Client
{% end %}

# Whether automatic compression/decompression is enabled.
Expand Down
2 changes: 1 addition & 1 deletion src/openssl.cr
Expand Up @@ -56,7 +56,7 @@ require "./openssl/lib_ssl"
# ```
module OpenSSL
class Error < Exception
getter! code : LibCrypto::ULong?
getter! code : LibCrypto::ULong

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

0 comments on commit a38087e

Please sign in to comment.