Merge pull request #260 from DevFactory/release/local-variables-should-not-be-declared-and-then-immediately-returned-or-thrown-fix-1

squid:S1488 - Local Variables should not be declared and then immediately returned or thrown
This commit is contained in:
Synced Synapse 2016-06-30 17:50:08 +01:00 committed by GitHub
commit 7a84e7fa7c
2 changed files with 2 additions and 7 deletions

View File

@ -482,9 +482,7 @@ public class TVShowEpisodeListFragment extends AbstractDetailsFragment
@Override
public View newGroupView(Context context, Cursor cursor, boolean isExpanded, ViewGroup parent) {
final View view = LayoutInflater.from(context)
.inflate(R.layout.list_item_season, parent, false);
return view;
return LayoutInflater.from(context).inflate(R.layout.list_item_season, parent, false);
}
@Override

View File

@ -316,10 +316,7 @@ public class AddHostFragmentZeroconf extends Fragment {
(ConnectivityManager) getActivity().getSystemService(Context.CONNECTIVITY_SERVICE);
NetworkInfo activeNetwork = cm.getActiveNetworkInfo();
boolean isConnected = activeNetwork != null &&
activeNetwork.isConnectedOrConnecting();
return isConnected;
return activeNetwork != null && activeNetwork.isConnectedOrConnecting();
}
/**