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

Commit

Permalink
Remove redundant access modifiers
Browse files Browse the repository at this point in the history
  • Loading branch information
siemensikkema committed May 3, 2019
1 parent fe26cae commit 12df5c8
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 12df5c8

Please sign in to comment.