Skip to content

Commit

Permalink
Remove comments
Browse files Browse the repository at this point in the history
  • Loading branch information
buenaflor committed Apr 23, 2024
1 parent d0eb540 commit 05c208c
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions flutter/ios/Classes/SentryFlutterPluginApple.swift
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ public class SentryFlutterPluginApple: NSObject, FlutterPlugin {
private static var engineEndtime: Int64 = 0

public static func register(with registrar: FlutterPluginRegistrar) {
let currentDate = Date() // Gets the current date and time
let timeInterval = currentDate.timeIntervalSince1970 // Time in seconds since epoch (1970-01-01)
engineEndtime = Int64(timeInterval * 1000) // Convert to milliseconds
let currentDate = Date()
let timeInterval = currentDate.timeIntervalSince1970
engineEndtime = Int64(timeInterval * 1000)

#if os(iOS)
let channel = FlutterMethodChannel(name: "sentry_flutter", binaryMessenger: registrar.messenger())
Expand Down Expand Up @@ -84,8 +84,8 @@ public class SentryFlutterPluginApple: NSObject, FlutterPlugin {
return iso8601FormatterWithMillisecondPrecision.date(from: iso8601String)
?? iso8601Formatter.date(from: iso8601String) // Parse date with low precision formatter for backward compatible
}


Check failure on line 88 in flutter/ios/Classes/SentryFlutterPluginApple.swift

View workflow job for this annotation

GitHub Actions / swift-lint

Vertical Whitespace Violation: Limit vertical whitespace to a single empty line; currently 2 (vertical_whitespace)
private func fetchEngineEndtime(result: @escaping FlutterResult) {
result(SentryFlutterPluginApple.engineEndtime)
}
Expand Down Expand Up @@ -162,7 +162,7 @@ public class SentryFlutterPluginApple: NSObject, FlutterPlugin {
let arguments = call.arguments as? [String: Any?]
let key = arguments?["key"] as? String
removeTag(key: key, result: result)

case "fetchEngineEndtime":
fetchEngineEndtime(result: result)

Expand Down

0 comments on commit 05c208c

Please sign in to comment.