Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: crystal-lang/crystal
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 93769822d245
Choose a base ref
...
head repository: crystal-lang/crystal
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 27f8b5dfeca5
Choose a head ref
  • 2 commits
  • 1 file changed
  • 2 contributors

Commits on Apr 13, 2018

  1. Copy the full SHA
    de985d0 View commit details
  2. Merge pull request #5945 from bew/remove-unecessary-noreturn

    Remove unnecessary NoReturn annotation
    asterite authored Apr 13, 2018
    Copy the full SHA
    27f8b5d View commit details
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/env.cr
2 changes: 1 addition & 1 deletion src/env.cr
Original file line number Diff line number Diff line change
@@ -71,7 +71,7 @@ module ENV

# Retrieves a value corresponding to a given *key*. Return the value of the block if
# the *key* does not exist.
def self.fetch(key : String, &block : String -> String? | NoReturn)
def self.fetch(key : String, &block : String -> String?)
value = LibC.getenv key
return String.new(value) if value
yield(key)