mirror of
https://github.com/Instagram/IGListKit
synced 2026-05-24 09:48:21 +00:00
Silence string interpolation warning in IGListCollectionContext+Refinements.swift
Summary:
Silences warning:
```
Source/IGListSwiftKit/IGListCollectionContext+Refinements.swift:90:71: warning: string interpolation produces a debug description for an optional value; did you mean to make this explicit?
fatalError("A nib named \"\(nibName)\" was not found in \(bundle)")
^~~~~~
Source/IGListSwiftKit/IGListCollectionContext+Refinements.swift:90:71: note: use 'String(describing:)' to silence this warning
fatalError("A nib named \"\(nibName)\" was not found in \(bundle)")
^~~~~~
String(describing: )
Source/IGListSwiftKit/IGListCollectionContext+Refinements.swift:90:71: note: provide a default value to avoid this warning
fatalError("A nib named \"\(nibName)\" was not found in \(bundle)")
^~~~~~
```
Reviewed By: natestedman
Differential Revision: D26320097
fbshipit-source-id: a5fa87fbe2cdf2ad8b55f985a904cf0d387debad
This commit is contained in:
parent
f4013b4ffe
commit
601de1b444
1 changed files with 1 additions and 1 deletions
|
|
@ -87,7 +87,7 @@ extension ListCollectionContext {
|
|||
for: sectionController,
|
||||
at: index
|
||||
) as? T else {
|
||||
fatalError("A nib named \"\(nibName)\" was not found in \(bundle)")
|
||||
fatalError("A nib named \"\(nibName)\" was not found in \(String(describing:bundle))")
|
||||
}
|
||||
|
||||
return cell
|
||||
|
|
|
|||
Loading…
Reference in a new issue