Skip to content
This repository was archived by the owner on Mar 7, 2026. It is now read-only.

Commit 01da4fe

Browse files
authored
Replace private functions with normal functions
1 parent 2b57215 commit 01da4fe

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Sources/prostore/viewModelsAndHelpers/SourcesViewModel.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ class SourcesViewModel: ObservableObject {
6868
loadSources()
6969
}
7070

71-
private func loadSources() {
71+
func loadSources() {
7272
do {
7373
if FileManager.default.fileExists(atPath: fileURL.path) {
7474
let data = try Data(contentsOf: fileURL)
@@ -95,7 +95,7 @@ class SourcesViewModel: ObservableObject {
9595
}
9696
}
9797

98-
private func loadDefaultSources() {
98+
func loadDefaultSources() {
9999
let defaultSources = [
100100
"https://repository.apptesters.org/",
101101
"https://wuxu1.github.io/wuxu-complete.json",
@@ -110,7 +110,7 @@ class SourcesViewModel: ObservableObject {
110110
saveSources()
111111
}
112112

113-
private func saveSources() {
113+
func saveSources() {
114114
do {
115115
let data = try JSONEncoder().encode(sources)
116116
try data.write(to: fileURL)

0 commit comments

Comments
 (0)