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 #37 from nodes-vapor/feature/fix-swift-5-warnings
Browse files Browse the repository at this point in the history
Remove redundant access modifiers
  • Loading branch information
cweinberger authored May 7, 2019
2 parents fe26cae + 12df5c8 commit b9fb42a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Sources/Flash/Extensions/Future+Flash.swift
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import Vapor

public extension Future where T: Response {
public func flash(_ type: Flash.Kind, _ message: String) -> Future<Response> {
func flash(_ type: Flash.Kind, _ message: String) -> Future<Response> {
return map(to: Response.self) { res in
return res.flash(type, message)
}
Expand Down
2 changes: 1 addition & 1 deletion Sources/Flash/Extensions/LeafTagConfig.swift
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import Leaf

public extension LeafTagConfig {
public mutating func useFlashLeafTags() {
mutating func useFlashLeafTags() {
use(FlashTag(), as: "flash")
}
}
2 changes: 1 addition & 1 deletion Sources/Flash/Extensions/Response+Flash.swift
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import Vapor

public extension Response {
public func flash(_ type: Flash.Kind, _ message: String) -> Response {
func flash(_ type: Flash.Kind, _ message: String) -> Response {
if let container = try? privateContainer.make(FlashContainer.self) {
container.flashes.append(.init(type, message))
}
Expand Down

0 comments on commit b9fb42a

Please sign in to comment.