Skip to content

Commit c29e758

Browse files
refactor: use variable defined above
1 parent 9ab4359 commit c29e758

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

plugin/ios/Plugin/OSBarcodeError.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ enum OSBarcodeError: Int, CustomNSError, LocalizedError {
2424
}
2525

2626
var errorCode: String {
27-
return "OS-PLUG-BARC-\(String(format: "%04d", self.rawValue))"
28-
}
27+
return "\(OSBarcodeErrorLabels.codeFormat)\(String(format: "%04d", self.rawValue))"
28+
}
2929

3030
}

0 commit comments

Comments
 (0)