Skip to content
This repository has been archived by the owner on Apr 20, 2024. It is now read-only.

Commit

Permalink
Merge pull request #87 from cb1674/nodes-vapor-4pr
Browse files Browse the repository at this point in the history
Nodes vapor 4pr
  • Loading branch information
steffendsommer authored Dec 3, 2018
2 parents 5d8bb3e + ab95e0e commit 068f793
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Package.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// swift-tools-version:4.2
// swift-tools-version:4.1
// The swift-tools-version declares the minimum version of Swift required to build this package.

import PackageDescription
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Sugar 🍬
[![Swift Version](https://img.shields.io/badge/Swift-4.2-brightgreen.svg)](http://swift.org)
[![Swift Version](https://img.shields.io/badge/Swift-4.1-brightgreen.svg)](http://swift.org)
[![Vapor Version](https://img.shields.io/badge/Vapor-3-30B6FC.svg)](http://vapor.codes)
[![Circle CI](https://circleci.com/gh/nodes-vapor/sugar/tree/master.svg?style=shield)](https://circleci.com/gh/nodes-vapor/sugar)
[![codebeat badge](https://codebeat.co/badges/54770476-a759-47f8-9372-1009267a56e0)](https://codebeat.co/projects/github-com-nodes-vapor-sugar-master)
Expand Down
4 changes: 0 additions & 4 deletions Sources/Sugar/Helpers/Environment.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,6 @@ public extension Environment {
return ProcessInfo.processInfo.environment[key] ?? fallback
}

public static func get(_ key: String) -> String? {
return ProcessInfo.processInfo.environment[key]
}

public static func assertGet(_ key: String) throws -> String {
guard let value = Environment.get(key) else {
throw Environment.EnvironmentError.keyNotFound(key: key)
Expand Down

0 comments on commit 068f793

Please sign in to comment.