• James D. Lin's avatar
    Clean up ProjectFileInvalidator.findInvalidated a bit (#41889) · 14c5c6e1
    James D. Lin authored
    In preparation for some refactoring that I will be doing to
    `ProjectFileInvalidator.findInvalidated`, make its code a bit
    clearer:
    * Indicate which arguments may be null.
    * Don't bother calling `FileStat.statSync` on the `.packages` file
      for the initial load.  This makes the checks for the `.packages`
      file consistent with those for other files.
    * Use `DateTime.isAfter()` instead of comparing microseconds
      ourselves.
    
    While I was touching this file, I also removed some unnecessary
    comparisons to `false`. (`_ManifestAssetBundle.wasBuiltOnce()` is the
    only implementation I can find of `AssetBundle.wasBuiltOnce()`, and
    it never returns `null`.)
    14c5c6e1
Name
Last commit
Last update
.github Loading commit data...
bin Loading commit data...
dev Loading commit data...
examples Loading commit data...
packages Loading commit data...
.cirrus.yml Loading commit data...
.codecov.yml Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
AUTHORS Loading commit data...
CODEOWNERS Loading commit data...
CODE_OF_CONDUCT.md Loading commit data...
CONTRIBUTING.md Loading commit data...
LICENSE Loading commit data...
PATENT_GRANT Loading commit data...
README.md Loading commit data...
analysis_options.yaml Loading commit data...
dartdoc_options.yaml Loading commit data...
flutter_console.bat Loading commit data...