Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Mercy811 committed Mar 6, 2024
1 parent f7029ac commit 596613d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion ios/Classes/SwiftAmplitudeFlutterPlugin.swift
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,11 @@ import AmplitudeSwift
}

// Set library
amplitude?.add(plugin: FlutterLibraryPlugin(library: args["library"] as! String))
guard let library = args["library"] as? String else {
amplitude?.logger?.warn(message: "Failed to set library.")
return
}
amplitude?.add(plugin: FlutterLibraryPlugin(library: library))

amplitude?.logger?.debug(message: "Amplitude has been successfully initialized.")

Expand Down

0 comments on commit 596613d

Please sign in to comment.