Skip to content

Commit

Permalink
Fixed the package issue
Browse files Browse the repository at this point in the history
Resolved the 'public' modifier is redundant for property declared in a public extension
  • Loading branch information
vigneshuvi committed Feb 4, 2021
1 parent 5c75819 commit 257631b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
7 changes: 6 additions & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ let package = Package(
.target(
name: "SwiftCSVExport",
path: "SwiftCSVExport/Sources"
)
),
.testTarget(
name: "SwiftCSVExportTests",
dependencies: ["SwiftCSVExport"],
path: "Tests")
]

)
10 changes: 5 additions & 5 deletions SwiftCSVExport/Sources/CSVConstants.swift
Original file line number Diff line number Diff line change
Expand Up @@ -33,32 +33,32 @@ public enum DividerType: String {
// MARK: - Extension for NSMutableDictionary
public extension NSMutableDictionary {

public var hasData:Bool {
var hasData:Bool {
return self.allKeys.count > 0 && self.allValues.count > 0
}

public var fields: [Any] {
var fields: [Any] {
guard let fields = self.object(forKey:FieldName.fields) else {
return []
}
return fields as! [Any];
}

public var rows: [Any] {
var rows: [Any] {
guard let rows = self.object(forKey:FieldName.rows) else {
return []
}
return rows as! [Any]
}

public var name: String {
var name: String {
guard let name = self.object(forKey:FieldName.name) else {
return ""
}
return name as! String
}

public var delimiter: String {
var delimiter: String {
guard let delimiter = self.object(forKey:FieldName.divider) else {
return ""
}
Expand Down

0 comments on commit 257631b

Please sign in to comment.