mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1081598: Eliminate silly ternary expressions. r=rnewman
* * * Bug 1081598: Eliminate silly ternary expressions. r=rnewman
This commit is contained in:
parent
1ca995c95f
commit
f92a0f779a
@ -665,7 +665,7 @@ public class ContactService implements GeckoEventListener {
|
||||
}
|
||||
|
||||
private boolean bool(int integer) {
|
||||
return integer != 0 ? true : false;
|
||||
return integer != 0;
|
||||
}
|
||||
|
||||
private void getGenericDataAsJSONObject(Cursor cursor, JSONArray array, final String dataColumn,
|
||||
|
@ -194,7 +194,7 @@ public class RepoUtils {
|
||||
|
||||
final String collection = "history";
|
||||
final long lastModified = getLongFromCursor(cur, BrowserContract.SyncColumns.DATE_MODIFIED);
|
||||
final boolean deleted = getLongFromCursor(cur, BrowserContract.SyncColumns.IS_DELETED) == 1 ? true : false;
|
||||
final boolean deleted = getLongFromCursor(cur, BrowserContract.SyncColumns.IS_DELETED) == 1;
|
||||
|
||||
final HistoryRecord rec = new HistoryRecord(guid, collection, lastModified, deleted);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user