Skip to content

Commit 61f6b0e

Browse files
committed
PR Feedback: make ProcFS an enum instead of a class
1 parent f669299 commit 61f6b0e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tools/swift-inspect/Sources/SwiftInspectLinux/ProcFS.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@
1313
import Foundation
1414
import LinuxSystemHeaders
1515

16-
public class ProcFS {
16+
// utility for reading files under /proc
17+
public enum ProcFS {
1718
public static func loadFile(for pid: pid_t, _ fileName: String) -> Data? {
1819
let filePath = "/proc/\(pid)/\(fileName)"
1920
// Loading contents of files under /proc may not work correctly using

0 commit comments

Comments
 (0)