Skip to content

Commit 2a833e2

Browse files
taruntarun
authored andcommitted
fixed some simple warnings
1 parent f884450 commit 2a833e2

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

Sources/Fuzzilli/Base/ProgramBuilder.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1158,7 +1158,7 @@ public class ProgramBuilder {
11581158
return nil
11591159
}
11601160

1161-
var weightedTypes = WeightedList<ILType>()
1161+
let weightedTypes = WeightedList<ILType>() // set this to let to avoid warning
11621162
for (t, w) in visibleTypes {
11631163
weightedTypes.append(t, withWeight: w)
11641164
}

Sources/Fuzzilli/Database/PostgreSQLStorage.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ public class PostgreSQLStorage {
332332
}
333333
} catch {
334334
// Rollback on error
335-
try? await connection.query("ROLLBACK", logger: self.logger)
335+
_ = try? await connection.query("ROLLBACK", logger: self.logger)
336336
throw error
337337
}
338338
}

Sources/Fuzzilli/Util/WeightedList.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public class WeightedList<Element>: Sequence {
4141
}
4242

4343
public func filter(_ isIncluded: (Element) -> Bool) -> WeightedList<Element> {
44-
var r = WeightedList()
44+
let r = WeightedList() // set this to let to avoid warning
4545
for (e, w, _) in elements where isIncluded(e) {
4646
r.append(e, withWeight: w)
4747
}

0 commit comments

Comments
 (0)