Skip to content

Commit ca983e5

Browse files
committed
Removing references to environment for the external tool page
1 parent 30acff5 commit ca983e5

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Horizon/Horizon/Sources/Features/ModuleItemSequence/Domain/ModuleItemStateInteractor.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ final class ModuleItemStateInteractorLive: ModuleItemStateInteractor {
9999
moduleID: moduleID,
100100
moduleItemID: itemID
101101
)
102-
return .externalTool(environment: environment, tools: tools, name: item.title)
102+
return .externalTool(tools: tools, name: item.title)
103103

104104
case .assignment(let id):
105105
return .assignment(courseID: courseID, assignmentID: id)

Horizon/Horizon/Sources/Features/ModuleItemSequence/View/ModuleItemSequenceView.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ public struct ModuleItemSequenceView: View {
143143
courseID: courseID
144144
)
145145
.id(url.absoluteString)
146-
case .externalTool(environment: let environment, tools: let tools, name: let name):
146+
case .externalTool(tools: let tools, name: let name):
147147
ModuleItemSequenceAssembly.makeLTIView(
148148
tools: tools,
149149
name: name

Horizon/Horizon/Sources/Features/ModuleItemSequence/View/ModuleItemSequenceViewState.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import Core
2121

2222
enum ModuleItemSequenceViewState {
2323
case externalURL(url: URL, environment: AppEnvironment, name: String, courseID: String)
24-
case externalTool(environment: AppEnvironment, tools: LTITools, name: String?)
24+
case externalTool(tools: LTITools, name: String?)
2525
case moduleItem(controller: UIViewController, id: String)
2626
case error
2727
case locked(title: String, lockExplanation: String)

0 commit comments

Comments
 (0)