Skip to content

Commit

Permalink
Update package
Browse files Browse the repository at this point in the history
  • Loading branch information
vmanot committed Apr 22, 2024
1 parent cf9742b commit 0a1b002
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Sources/Lite/Intramodular/Models/LTAccountStore.swift
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,16 @@ public final class LTAccountStore: ObservableObject {
}()

public init() {
_loadTestAccountsIfNeeded()
if ProcessInfo.processInfo._isRunningWithinXCTest {
_loadTestAccountsIfNeeded()
}
}
}

extension LTAccountStore {
fileprivate func _loadTestAccountsIfNeeded() {
assert(ProcessInfo.processInfo._isRunningWithinXCTest)

@FileStorage(
url: URL.homeDirectory.appending(path: ".preternatural.toml"),
coder: TOMLCoder()
Expand Down

0 comments on commit 0a1b002

Please sign in to comment.