From 04b858d711f36183bec22497eddc8fa5d4a29285 Mon Sep 17 00:00:00 2001 From: Christophe Bronner Date: Mon, 16 Mar 2020 21:51:48 -0400 Subject: [PATCH] public isEmpty in Call --- Sources/TerminalCommands/Call/Call.swift | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Sources/TerminalCommands/Call/Call.swift b/Sources/TerminalCommands/Call/Call.swift index 1c306d2..156727e 100644 --- a/Sources/TerminalCommands/Call/Call.swift +++ b/Sources/TerminalCommands/Call/Call.swift @@ -11,7 +11,7 @@ extension Command { //MARK: Computed Properties /// Wether the call has ran out of arguments - var isAtEnd: Bool { args.isEmpty } + public var isEmpty: Bool { args.isEmpty } //MARK: Initialization @@ -23,12 +23,12 @@ extension Command { /// Makes sure there are no arguments left in the call public func assertEmpty() throws { - guard isAtEnd else { throw Errors.expectedNoArguments } + guard isEmpty else { throw Errors.expectedNoArguments } } /// Makes sure there are arguments left in the call public func assertNotEmpty() throws { - guard !isAtEnd else { throw Errors.expectedArgument } + guard !isEmpty else { throw Errors.expectedArgument } } /// Makes sure there are exactly `n` arguments left in the call