Skip to content

Commit

Permalink
refactor scan methods
Browse files Browse the repository at this point in the history
  • Loading branch information
taji-taji committed Aug 13, 2022
1 parent 093e514 commit 7b1974b
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions Sources/DangerSwiftPeriphery/DangerPeriphery.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,6 @@
import Danger

public struct DangerPeriphery {
@discardableResult
public static func scan(peripheryExecutable: String = "swift run periphery",
shouldComment: Bool = true,
verbose: Bool = false) -> Result<[Violation] , Error> {
scan(peripheryExecutable: peripheryExecutable,
arguments: [] as [String],
shouldComment: shouldComment,
verbose: verbose)
}

@discardableResult
public static func scan(peripheryExecutable: String = "swift run periphery",
@PeripheryArgumentsBuilder arguments: () -> [String],
Expand All @@ -42,7 +32,7 @@ public struct DangerPeriphery {

@discardableResult
public static func scan(peripheryExecutable: String = "swift run periphery",
arguments: [String],
arguments: [String] = [],
shouldComment: Bool = true,
verbose: Bool = false) -> Result<[Violation] , Error> {
Logger.shared.verbose = verbose
Expand Down

0 comments on commit 7b1974b

Please sign in to comment.